On 12/22/2014 11:37 PM, Rich Felker wrote: > On Mon, Dec 22, 2014 at 10:21:26PM -0600, Rob Landley wrote: >> If "less" is a priority, that actually helps prioritize the rest of >> them. Once I've written the basic "navigate a line" infrastructure (with >> querying screen size via ansi probe fallback, and reassembling escape >> sequences that got decoupled going over serial line; I fixed both of >> these in busybox several years ago), then stacking them isn't quite as >> big a deal. > > I hope you'll have an option just to rely on TIOCGWINSZ. The escapes > that cause the terminal to "echo back" a response are considered a > security misdesign by some people (myself included) and they're also > problematic from the standpoint that you don't know if they'll be > supported and that you can't distinguish between a terminal that > doesn't support them and one which is just slow to respond. I realize > you don't have any other option on serial terminals, but thankfully > lots of us don't have to deal with serial terminals.
Lots of us _do_ have to deal with serial terminals. If you export $ROWS and $COLUMNS it'll do that instead of probe, and I can add a compile-time config symbol to switch it off if you care that much. >> I do follow a security researcher on twitter (@0xabad1dea) and for a >> while she had as her handle: >> >> echo -e "Melissa \xe2\x80\xae ασσιλέΜ \xe2\x80\xed" >> >> So it would be nice to get the reversal codes to work. But given that >> xfce's terminal doesn't handle it either... >> >> (Dalias wrote a terminal that probably does. I should compile/install >> that and try it out...) > > Mine doesn't. Bidirectional text is the main (only?) multilingual > feature uuterm is missing. Even for just "more", the fontmetrics of combining characters is... fun. I _mostly_ punt this to the display layer, but this piece of infrastructure probably should care. > Rich Rob _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
