Re: [DNG] mlterm to display path in window frame

2019-11-11 Thread Haines Brown
On Sun, Nov 10, 2019 at 10:44:02PM +0100, marc wrote:
> Hello
> 
> I am under the impression that some xterminal emulators
> understand a certain escape sequence (maybe tsl ?) which
> update the title bar.
> 
> What does
> 
>   tput hsl
> 
> and 
> 
>   tput tsl ; echo -n hello ; tput fsl
> 
> do ? 

They have no effect.


> Maybe that escape sequence has been removed
> from your terminfo entry ? Use infocmp to check
> on a working system...

Not sure how to use infocmp, but tput does not show up, and 

  $ infocmp | grep mlterm
  #   Reconstructed via infocmp from file: 
  /usr/share/terminfo/m/mlterm
  mlterm|multi lingual terminal emulator,

Haines
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] mlterm to display path in window frame

2019-11-11 Thread marc
Hello

> > I am under the impression that some xterminal emulators
> > understand a certain escape sequence (maybe tsl ?) which
> > update the title bar.
> > 
> > What does
> > 
> >   tput hsl
> > 
> > and 
> > 
> >   tput tsl ; echo -n hello ; tput fsl
> > 
> > do ? 
> 
> They have no effect.

And what if you type

  export TERM=xterm+sl

and then repeat the above tput commands ? That should give you the same effect
as Ralph has hardcoded into his prompt, assuming you have the correct 
terminfo entry

> Not sure how to use infocmp, but tput does not show up, and
>
>   $ infocmp | grep mlterm

Hmm, I might have been a bit terse. Tput allows you to look up 
escape sequences in the terminfo/termcap database. We are interested
in tsl (escape sequence to write to the status bar). infocmp displays
the whole database, so you could type
 
  infocmp mlterm   | grep tsl
  infocmp xterm+sl | grep tsl

to find this sequence. Man 8 terminfo gives you an explanation of the escape
codes. 

If none of that works, try Ralph's hardcoded approach, eg

echo -e "\033]0;hello\007"

In an effort to trim things, many distributions ship only a small subset of
the terminfo database by default, and relegate the rest to an optional 
package...

regards

marc
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Insane defaults on Raspberry Pi images - How to fix corruption/dataloss

2019-11-11 Thread Steve Litt
On Sat, 9 Nov 2019 12:53:26 -0800
tom  wrote:

> On Fri, 8 Nov 2019 16:55:34 +0100
> "Dr. Nikolaus Klepp"  wrote:
> 
> > Anno domini 2019 Fri, 8 Nov 16:36:24 +0100
> >  Joril via Dng scripsit:  
> > > On 08/11/19 16:21, g4sra via Dng wrote:  
> > > > FYI: ext4 filesystem journaling (and swap) *should* be disabled
> > > > by default on SD\SDHC media.  
> > > 
> > > To reduce wear?  
> > 
> > Yes.  
> 
> I really don't think data-loss is an acceptable compromise just to
> reduce wear.

Lack of a journal doesn't necessarily mean data loss. It just means
that you might need to run fsck.ext4 on the drive after unmounting.
Occasionally you do lose data: I think it has to do with crash
shutdowns twice in a row without an intervening fsck.ext4.

SteveT

Steve Litt
November 2019 featured book: Manager's Guide to Technical
Troubleshooting Second edition
http://www.troubleshooters.com/mgr
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng