Re: [dev] ASCII Delimited Text

2018-05-17 Thread Greg Reagle
On Wed, May 16, 2018, at 10:05, Adrian Grigore wrote: > What do you guys think of this: > > https://ronaldduncan.wordpress.com/2009/10/31/text-file-formats-ascii-delimited-text-not-csv-or-tab-delimited-text/ Seems reasonable to me. For the purpose of transferring data between two different spr

Re: [dev] [st] How to make it distinguish Control-p from Control-P?

2018-05-17 Thread Daniel Vartanov
Thank you everyone your answers, it was really helpful. I do hope Leonerd's approach prevails http://www.leonerd.org.uk/hacks/fixterms/ On 16 May 2018 at 23:09, Amer wrote: >> Is there way to make Contol-sequences case sensitive? > > You can use this patch to support extended set of hotkeys. >

Re: [dev] ASCII Delimited Text

2018-05-17 Thread Adrian Grigore
How would you have other tools like cat(1) or ls(1) handle them? On Thu, May 17, 2018 at 6:16 AM, Greg Reagle wrote: > On Wed, May 16, 2018, at 10:05, Adrian Grigore wrote: >> What do you guys think of this: >> >> https://ronaldduncan.wordpress.com/2009/10/31/text-file-formats-ascii-delimited-te

Re: [dev] [st] How to make it distinguish Control-p from Control-P?

2018-05-17 Thread harry666t
The terminal is still the lowest common denominator in user interfaces. Which is Good, because while it restrains you from doing a few useful things, it also stops everyone else from doing some extremely harmful things. Sadly that also means there's little incentive for fixing the awful stuff (like

Re: [dev] [st] How to make it distinguish Control-p from Control-P?

2018-05-17 Thread Roberto E. Vargas Caballero
I am sorry, but st hasn't super powers, and it cannot do impossible things. Control mask the upper bits of the key (key & 0x1F) while shift clears the 6th bit, so ctrl+shift+p = (p & ~0x20) & 0x1f. As you can see, it is impossible to differentiate between ^p and ^P. Regards,

Re: [dev] ASCII Delimited Text

2018-05-17 Thread Greg Reagle
On Thu, May 17, 2018, at 10:50, Adrian Grigore wrote: > How would you have other tools like cat(1) or ls(1) handle them? I don't know. The way it currently handles them perhaps.

Re: [dev] ASCII Delimited Text

2018-05-17 Thread Raphaël Proust
On 2018-05-17 22:50, Adrian Grigore wrote: > How would you have other tools like cat(1) or ls(1) handle them? Through the $FS and $RS environment variables. So you can do `FS=\xHH ls` (where HH is the hex code for the ASCII field separator). The ls in usul handles that. -- Raphaël