Gentoo Archives: gentoo-user

From: "Håkon Alstadheim" <hakon@×××××××××××××××.no>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: OT - Midnight Commander and hiding terminal output
Date: Tue, 05 Jan 2016 12:38:07
Message-Id: 568BB91F.10707@alstadheim.priv.no
In Reply to: Re: [gentoo-user] Re: OT - Midnight Commander and hiding terminal output by Skippy
1 Den 03. jan. 2016 16:56, skrev Skippy:
2 >
3 > On 01/02/2016 12:38 AM, Håkon Alstadheim wrote:
4 >> Den 01. jan. 2016 00:49, skrev Linux:
5 >>> On 12/30/2015 10:32 AM, Roman Dobosz wrote:
6 >>>
7 >>> snip
8 >> Should be as easy as hitting Ctrl-L when your screen is messed up,
9 >> should it not? Don't use MC, so haven't tried it. If it does not work,
10 >> look in manual for key-binding for "redraw" .
11 >>
12 > I didn't know about ctrl-L. Sure enough that works as well.
13 > Thank you. Good work around until I fix it otherwise.
14 > Skippy
15 >
16 >
17
18 ctrl-L (C-l for short) is old standard terminal key-binding, sending an
19 actual control-character. Control-characters are like their regular
20 counterparts but with a numeric value 0x40 less. Others that you
21 probably know are C-c (0x03, break) , C-d, C-/ . More obscure are C-s
22 (aka XOFF) to suspend terminal output, and C-q (aka XON) to continue
23 output. All these are control-characters used forever on unix terminals.
24
25 Also fairly standard C-h (backspace) C-p (previous) C-n (next). C-j is
26 synonym for carriage return aka \r, C-m is line-feed aka \n. Good to
27 know when keyboard mappings get screwed up.
28
29 In this context C-l is actually sending page-break control-character,
30 which will usually redraw the terminal window, unless the app decides to
31 use it for something else.
32
33 These control-codes can be seen in an acii table, they are the first ten
34 code-points.