Re: [gentoo-user] Re: OT - Midnight Commander and hiding terminal output

2016-01-05 Thread Håkon Alstadheim
Den 03. jan. 2016 16:56, skrev Skippy:
>
> On 01/02/2016 12:38 AM, Håkon Alstadheim wrote:
>> Den 01. jan. 2016 00:49, skrev Linux:
>>> On 12/30/2015 10:32 AM, Roman Dobosz wrote:
>>>
>>> snip
>>   Should be as easy as hitting Ctrl-L when your screen is messed up,
>> should it not? Don't use MC, so haven't tried it. If it does not work,
>> look in manual for key-binding for "redraw" .
>>
> I didn't know about ctrl-L. Sure enough that works as well.
> Thank you.  Good work around until I fix it otherwise.
> Skippy
>
>

ctrl-L (C-l for short)  is old standard terminal key-binding, sending an
actual control-character. Control-characters are like their regular
counterparts but with a numeric value 0x40 less. Others that you
probably know are C-c (0x03, break) , C-d, C-/ . More obscure are C-s
(aka XOFF) to suspend terminal output, and C-q (aka XON) to continue
output. All these are control-characters used forever on unix terminals.

Also fairly standard C-h (backspace) C-p (previous) C-n (next). C-j is
synonym for carriage return aka \r, C-m is line-feed aka \n. Good to
know when keyboard mappings get screwed up.

In this context C-l is actually sending page-break control-character,
which will usually redraw the terminal window, unless the app decides to
use it for something else.

These control-codes can be seen in an acii table, they are the first ten
code-points.




Re: [gentoo-user] Re: OT - Midnight Commander and hiding terminal output

2016-01-03 Thread Skippy


On 01/02/2016 12:38 AM, Håkon Alstadheim wrote:
> Den 01. jan. 2016 00:49, skrev Linux:
>> On 12/30/2015 10:32 AM, Roman Dobosz wrote:
>>
>> snip

>   Should be as easy as hitting Ctrl-L when your screen is messed up,
> should it not? Don't use MC, so haven't tried it. If it does not work,
> look in manual for key-binding for "redraw" .
> 
I didn't know about ctrl-L. Sure enough that works as well.
Thank you.  Good work around until I fix it otherwise.
Skippy



Re: [gentoo-user] Re: OT - Midnight Commander and hiding terminal output

2016-01-01 Thread Håkon Alstadheim
Den 01. jan. 2016 00:49, skrev Linux:
> On 12/30/2015 10:32 AM, Roman Dobosz wrote:
>
> snip
>
>> Just redirect the standard end error output to the void, like:
>>
>> --- 8< ~/.config/mc/mc.ext ---
>> include/video2
>>  Open=(mpv -vf-clr %f >/dev/null 2>&1 &)
>>  View=%view{ascii} midentify %f
>>  Edit=if [ -n "$DISPLAY" ]; then (avidemux3_qt4 %f 2>&1
>> >/dev/null &); fi
>> --- >8 
>>
>> so opening the file (pressing enter on the file), or editing it (via
>> pressing F4) I don;t see any output from neither mpv nor avidemux.
>> Note, that both of the processes are instantly put to the background
>> (amperand at the end of the command) so that mc is still operatable.
>>
>> Hope, that helps :)
>
> This does help.  Thank you very much.  I'll be trying it out soon.
> -Skippy
>
>
>
  Should be as easy as hitting Ctrl-L when your screen is messed up,
should it not? Don't use MC, so haven't tried it. If it does not work,
look in manual for key-binding for "redraw" .




Re: [gentoo-user] Re: OT - Midnight Commander and hiding terminal output

2015-12-31 Thread Linux

On 12/30/2015 10:32 AM, Roman Dobosz wrote:

snip


Just redirect the standard end error output to the void, like:

--- 8< ~/.config/mc/mc.ext ---
include/video2
 Open=(mpv -vf-clr %f >/dev/null 2>&1 &)
 View=%view{ascii} midentify %f
 Edit=if [ -n "$DISPLAY" ]; then (avidemux3_qt4 %f 2>&1 >/dev/null &); fi
--- >8 

so opening the file (pressing enter on the file), or editing it (via
pressing F4) I don;t see any output from neither mpv nor avidemux.
Note, that both of the processes are instantly put to the background
(amperand at the end of the command) so that mc is still operatable.

Hope, that helps :)


This does help.  Thank you very much.  I'll be trying it out soon.
-Skippy