Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header with blue background jumps every update time #30

Open
KorneevVitaly opened this issue Jun 26, 2020 · 22 comments
Open

Header with blue background jumps every update time #30

KorneevVitaly opened this issue Jun 26, 2020 · 22 comments

Comments

@KorneevVitaly
Copy link

KorneevVitaly commented Jun 26, 2020

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

@gsass1
Copy link
Owner

gsass1 commented Jun 27, 2020

What kind of terminal is that?

@KorneevVitaly
Copy link
Author

KorneevVitaly commented Jun 27, 2020

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.

@gsass1
Copy link
Owner

gsass1 commented Jun 28, 2020

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 :/

@KorneevVitaly
Copy link
Author

KorneevVitaly commented Jun 28, 2020

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;

@Krikonildo
Copy link

Krikonildo commented Oct 20, 2020

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

@Alex313031
Copy link

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
Copy link

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
Copy link

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

@greatquux
Copy link

greatquux commented Oct 29, 2020 via email

@Krikonildo
Copy link

@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
Copy link

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

@gsass1
Copy link
Owner

gsass1 commented Oct 29, 2020

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.

@greatquux
Copy link

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 '/').

@Alex313031
Copy link

@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
Copy link

@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.

@greatquux
Copy link

@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.

@Alex313031
Copy link

@greatquux Thnx

@Alex313031
Copy link

@greatquux Crashes on launch on Win 7 sp1 ultimate x64

@greatquux
Copy link

greatquux commented Nov 30, 2020 via email

@iqlat
Copy link

iqlat commented Sep 18, 2021

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
Copy link

iqlat commented Nov 3, 2021

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.

@gsass1
Copy link
Owner

gsass1 commented Nov 3, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants