NTop icon indicating copy to clipboard operation
NTop copied to clipboard

Header with blue background jumps every update time

Open KorneevVitaly opened this issue 4 years ago • 22 comments

When ntop is working, the header disapeares and reappeares each update time (regardless if it's in cmd.exe or ConEmu), which looks like everything jumps up and down. I installed it from chocolatey. Here the screenshots: 3 2

KorneevVitaly avatar Jun 26 '20 16:06 KorneevVitaly

What kind of terminal is that?

gsass1 avatar Jun 27 '20 07:06 gsass1

What kind of terminal is that?

I'm using ConEmu.

Tried open ntop in regular cmd.exe and it has the same behaviour. Also, my system is Windows 8.1.

KorneevVitaly avatar Jun 27 '20 19:06 KorneevVitaly

Well this statement https://github.com/gsass1/NTop/blob/master/ntop.c#L1767 (DISABLE_NEWLINE_AUTO_RETURN) is what should prevent the buffer from scrolling on the last line. IDK why that doesn't work on Windows 8.1 :/

gsass1 avatar Jun 28 '20 08:06 gsass1

I tieed build it with build.bat and I've got an error with "error C2275: WORD:invalid use of this type" Screenshot_1

And in minwindef.h(159) it's: typedef unsigned short WORD;

KorneevVitaly avatar Jun 28 '20 09:06 KorneevVitaly

Work as intended with Windows 10. Same problem with Windows 7. Maybe a command line option to disable the header ?

Krikonildo avatar Oct 20 '20 14:10 Krikonildo

Can confirm on windows x64 7, server 2011, 8, 8.1. Havent tested in ten but probably works as Krikonildo said. I love all the "tops" for Unix/Linux i.e. top, htop, nvtop, atop. There is no other program like this and I really like it just disappointing me with the jittering up and down it can make it hard to read. Also verified on 32 bit windows 7 in command.com.

Alex313031 avatar Oct 29 '20 03:10 Alex313031

Update @Krikonildo @KorneevVitaly @gsass1 WORKS as intended IF you set compatibility mode to Windows XP SP3 in the executables properties. This works for 7, and 8.1 but strangely not 8. Of course my 8 is in a VM whereas 7 and 8.1 are real machines but idk if that makes a difference. Compiling works with VS 2017 AND 2015 with platform update on win 7. Same issues and same resolution no matter what is used to compile.

Alex313031 avatar Oct 29 '20 03:10 Alex313031

I have it in a directory in my path, and if I launch it from cmd (not double clicking ntop), this only resolves it IF you keep the default ~80X24 Prompt size

Alex313031 avatar Oct 29 '20 03:10 Alex313031

Actually, while playing with your workaround, I found another one which doesn't require changing terminal size or compatibility options - just press / as if you were going to do a search, but then don't do anything, and the display calms down and keeps updating. Annoying for sure, in that if you want to re-sort you have to backspace first, but it does work. This display has been steady for many minutes now:

image

-- Michael Russo | Systems Engineer | PaperSolve, Inc. office (718) 477 8906 | direct (332) 228 1817

Randomly generated quote of the last 5 minutes:

Jim, this is Janelle. I'm flying tonight, so I can't make our date, and I gotta find a safe place for Daffy. He loves you, Jim! It's only two days, and you'll see. Great Danes are no problem!

          -- "The Rockford Files"

From: Alexander David Frick Sent: Wednesday, October 28, 2020 11:53 PM To: gsass1/NTop [email protected] Cc: Mike Russo [email protected]; Manual [email protected] Subject: Re: [gsass1/NTop] Header with blue background jumps every update time (#30)

I have it in a directory in my path, and if I launch it from cmd (not double clicking ntop), this only resolves it IF you keep the default ~80X24 Prompt size

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/gsass1/NTop/issues/30#issuecomment-718342746, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAMUJBROUSUFLUHOEOIJI5LSNDRJVANCNFSM4OJP2NNA.

--

Michael Russo | Systems Engineer | PaperSolve, Inc. office (718) 477 8906 | direct (332) 228 1817

Your random quote for today:

  • Endy needs to consult coffee :P <Endy> coffee the bot person, not coffee the beverage :) consulting the beverage may help too =>

greatquux avatar Oct 29 '20 12:10 greatquux

@Alex313031 Didn't work for me ( Windows 7 x64 ). Neither compatibility mode or cmd. Works without DISABLE_NEWLINE_AUTO_RETURN ( Linux / MinGW ). Even on Vista x86 recompiling with GetTickCount.

Krikonildo avatar Oct 29 '20 17:10 Krikonildo

@greatquux Works for me too. But it crashes if I try to select a process with the directional arrows.

Krikonildo avatar Oct 29 '20 17:10 Krikonildo

Hello

I just pushed another commit that maybe fixes this. I would be grateful if someone could just compile the latest commit and tell me if it works since I don't have a Windows 7 VM atm.

gsass1 avatar Oct 29 '20 18:10 gsass1

I compiled the latest version and it seems to work great on my Windows Server 2012 R2 now where it was previously jumping around (unless I pressed '/').

greatquux avatar Nov 04 '20 14:11 greatquux

@greatquux @Krikonildo The / works better because you can resize, also works on win 8. I had an SSD fail and had to recover alot of files and reinstall win 7 on a new ssd. Don't have alot of stuff set up including VS, so is there a way you could share your latest compiled version so I can try. Also cudos to @gsass1 for bein so quick about everything.

Alex313031 avatar Nov 23 '20 23:11 Alex313031

@Krikonildo Your'e still using Vista in 2020!! JK I use win xp and win 98 for old stuff, and have VMs of vista. Anyway, VS 2013 and higher requires >Win 7 and 2015 and higher requires > Win 7 with 2013 Platform Update https://www.microsoft.com/en-us/download/details.aspx?id=36805 So how in the world did you compile it on that.

Alex313031 avatar Nov 23 '20 23:11 Alex313031

@Alex313031 I will send you a link to the last compiled version I have, it was while doing some troubleshooting for the issue 34 so it leaves some stuff in the background when you quit and if it cannot find a username it displays it as "default" but otherwise works fine.

greatquux avatar Nov 24 '20 20:11 greatquux

@greatquux Thnx

Alex313031 avatar Nov 30 '20 00:11 Alex313031

@greatquux Crashes on launch on Win 7 sp1 ultimate x64

Alex313031 avatar Nov 30 '20 00:11 Alex313031

Unfortunately I don't have that exact version of OS to test against, but I am able to run the same binary on a Windows Server 2008 R2 SP1 (which is always x64):

image

--

Michael Russo | Systems Engineer | PaperSolve, Inc. office (718) 477 8906 | direct (332) 228 1817

Your random quote for today: There's no easy quick way out, we're gonna have to live through our whole lives, win, lose, or draw. -- Walt Kelly

-----Original Message----- From: Alexander David Frick <[email protected]mailto:Alexander%20David%20Frick%20%[email protected]%3e> Reply-To: gsass1/NTop <[email protected]mailto:gsass1/NTop%20%[email protected]%3e> To: gsass1/NTop <[email protected]mailto:gsass1/NTop%20%[email protected]%3e> Cc: greatquux <[email protected]mailto:greatquux%20%[email protected]%3e>, Mention <[email protected]mailto:Mention%20%[email protected]%3e> Subject: Re: [gsass1/NTop] Header with blue background jumps every update time (#30) Date: Sun, 29 Nov 2020 16:55:25 -0800

@greatquuxhttps://github.com/greatquux Crashes on launch on Win 7 sp1 ultimate x64

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/gsass1/NTop/issues/30#issuecomment-735489750, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAMUJBVYFBM2MH24ONW4FMLSSLUP3ANCNFSM4OJP2NNA.

greatquux avatar Nov 30 '20 13:11 greatquux

Same issue, title flickering on latest build (from scoop/git repo); tested as standalone .exe and in Cmder; on Windows 7 x64 Pro; it stops only when window looses focus => gif_link; the workaround with "/" crashes app.

iqlat avatar Sep 18 '21 16:09 iqlat

upd: nov, 2021 -> this issue seems to be fixed in the latest source code; you can compile it by your own or download the compiled one from google drive.

iqlat avatar Nov 03 '21 16:11 iqlat

You can also fetch the latest build on CircleCI, for example: https://app.circleci.com/pipelines/github/gsass1/NTop/5/workflows/62fb589a-2e71-4e21-903d-6d5b9c2d8c17/jobs/5/artifacts

gsass1 avatar Nov 03 '21 16:11 gsass1