Gdb in tui mode not expanding CMD window - gdb

Using gdb in tui mode and I'm having a problem with the size of the work area of the CMD window.
Using the winheight I am able to modify the hight for the SRC and CMD windows, but the CMD window refuses to be larger than 20 lines, even if info win gives a size of 40+ lines.
SRC window on other hand is able to change it's size accordingly. Refreshing the screen does not help, and I'm ending up with "blank" space between the SRC and CMD windows, that should be used by the CMD window, but is not.
Any ideas as to why?

Related

gdb tui: How to change the style of the "current line" bar?

I'm using gdb 10.2 in a gnome-terminal (on Ubuntu 20.04 running in WSL2), where gnome-terminal is configured to follow the system theme.
In tui mode, if the current line is indicated by a black bar. Function calls are formatted with black foreground text, rendering them unreadable:
Already tried
set style source off: The current line is now readable, but source color coding is now (obviously) disabled
set style function foreground white: No effect
Configure gnome terminal to not follow the system theme: The terminal switches to "dark mode": The background now becomes black, the bar turns white. The function names are readable, but the legibility of many of the differently colored things is reduced.
Possible duplicate question
At this point, disabling source highlighting is workable, but suboptimal. Tips are most welcome!

WebStorm integrated terminal incorrectly displays font glyphs

I use zsh with OSX and have custom glyphs added to my fonts. WebStorm's integrated terminal is the only application that seems to squish the glyphs too close, as shown in the attached screenshot. iTerm, Terminal and VS Code all display the glyphs correctly.
Does anyone have a solution for this problem?
Try to set same font for Webstorm's console as you use for iTerm and Terminal. Go to "Settings > Editor > Colors & Fonts > Console Font", set Primary font (I use Meslo LG M DZ for Powerline with size 14) and a fallback Secondary font (Menlo in my case). Enable ligatures as well.
Here is the screenshot of my settings
Result is not perfect, but better as on your screenshot.

gnuplot x11 terminal - aspect ratio does not remain constant when window is resized

I have had trouble with the aspect ratio using gnuplot on the x11 terminal.
I have tried 'set size ratio -1' and 'set size square' commands. All works well until the window is re-sized. The aspect ratio of the plot is not preserved unless the window is stretched in both directions in equal proportions.
I would like to maximize the x11 window while maintaining a square aspect ratio for the plot. Is this possible?
Also, I am using gnuplot version 4.6.5
EDIT #1:
i also have to note that im calling gnuplot from a c++ script. lets say i have an ascii file containing all the gnuplot commands called plotCOMMANDS. within my c++ script, i have the following system command to call gnuplot: gnuplot -persist plotCOMMANDS
if i was plotting within the gnuplot terminal, i could use the replot command (as suggested by Christoph). but is there a way to run the replot command within the c++ script each time the window is resized?
I think that the window content isn't updated automatically after you maximize it, but the existing plot is only rescaled to the new window size (the windows terminal has the same problem).
You must enter replot in the interactive terminal after you maximized the window. That works fine for both the x11 and the windows terminals. The hotkey e doesn't work for x11. BTW: In the upcoming version 5.0 this behavior is fixed and the window automatically replots when the canvas size is changed.

C++ Creating a Screen Saver for Windows

I have created an animation in C++ using OpenGL and SDL (it uses no Windows libraries) and wish to use it as a screen saver for a Windows system. I read one example: it describes that you simply have to change the .exe extension to .scr.
I have done that and ran the animation as a screen saver but I noticed that the animation did not run smoothly at all. As if there was a loss in the application performance.
The application I made creates the animation, sets it to full screen, hides the cursor and handles all keyboard input. How can I make my application run smoothly as a screen saver?
It's more than just renaming the file.
At the bare minimum you must support correct behavior in response to the following command line parameters (taken from Microsoft):
ScreenSaver - Show the Settings dialog box.
ScreenSaver /c - Show the Settings dialog box, modal to the
foreground window.
ScreenSaver /p <HWND> - Preview Screen Saver as child of window <HWND>.
ScreenSaver /s - Run the Screen Saver.
If multiple instances of your executable are being started and run as a full screen screen saver (the screen saver should only actually run if /s is specified), that may be the cause of your performance issues. You should verify that in e.g. Task Manager.
Hope that helps.

Resize windows console to fullscreen in C

Is it possible to resize the console in a windows console application to fullscreen size?
It is possible to do that in the preferences of the windows, after the console was opened, but I cannot figure out how to do it programmatically.
You can get a handle to the console window using GetConsoleWindow.
Once you have that, you should be able to resize it using SetWindowPos
You may also need to resize the buffer for the console using SetConsoleScreenBufferSize prior to resizing the window.
ETA:
Others have mentioned using SetConsoleDisplayMode to display the console in full-screen (non-windowed) mode. I'm not sure if this is really what you wanted or not though. I haven't seen any apps use non-windowed mode since the windows 98 days.