[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A Valgrind-observant ncurses
From: |
Steve Litt |
Subject: |
Re: A Valgrind-observant ncurses |
Date: |
Sun, 23 Jun 2024 03:19:57 -0400 |
Thomas Dickey said on Sat, 22 Jun 2024 17:19:54 -0400
>On Fri, Jun 21, 2024 at 07:01:44AM +1000, Michael D. Setzer II wrote:
>> Just wondering if the Ctrl-L would clean screen?
>
>A few terminals (mostly emulators actually) will clear the screen on
>^L. DEC's hardware terminals were not among those; xterm likewise.
I don't know if this is relevant to this discussion, but when I
designed the original UMENU () in 1999, my screen clear was 25
newlines. I did this to work on absolutely any terminal, including a
teletype.
Here's an example:
#include <stdio.h>
int main(int argc, char * argv[]){
int i;
for(i=0; i < 25; i++){
putchar('\n');
}
return 0;
}
For small size and fast loading, compile as follows:
gcc -Wall -s -Os -o nl25 nl25.c
Now, in your window manager, if you set a hotkey to run nl25, 25
newlines appear to clear the screen. I can't imagine a terminal it
wouldn't work on, including a teletype terminal.
As I mentioned, I have no idea if this is acceptable under your
scenario.
SteveT
Steve Litt
http://444domains.com
- A Valgrind-observant ncurses, Steve Litt, 2024/06/20
- Re: A Valgrind-observant ncurses, Bill Gray, 2024/06/20
- Re: A Valgrind-observant ncurses, G. Branden Robinson, 2024/06/20
- Re: A Valgrind-observant ncurses, Thomas Dickey, 2024/06/20
- Re: A Valgrind-observant ncurses, Michael D. Setzer II, 2024/06/20
- Re: A Valgrind-observant ncurses, Thomas Dickey, 2024/06/22
- Re: A Valgrind-observant ncurses,
Steve Litt <=
- Re: Ctrl-L cleaning the screen, Thomas Dickey, 2024/06/23
- Re: A Valgrind-observant ncurses, G. Branden Robinson, 2024/06/20
- Re: A Valgrind-observant ncurses, Bill Gray, 2024/06/20
- Re: A Valgrind-observant ncurses, G. Branden Robinson, 2024/06/20
- Re: A Valgrind-observant ncurses, Thomas Dickey, 2024/06/21
Re: A Valgrind-observant ncurses, Thomas Dickey, 2024/06/20