Improved support for leading newline

* New modes that either print it only when it isn't the first line, or
    only add it (as well as a warning) if the last command didn't return
    a newline.
  * Overengineered af.
This commit is contained in:
Emmanuel BENOîT 2022-10-22 18:31:35 +02:00
parent eeed7e79a1
commit a595d71cbd
9 changed files with 149 additions and 11 deletions

View file

@ -42,6 +42,13 @@
'bg_ps2' => thref 'bg',
ps2_suffix => '\b2\f3| ' ,
# Text appended to a line without EOL when layout_empty_line is 3
'noeol_text' => '<NO EOL>' ,
# Colors and style for the above text
'noeol_fg' => thref 'fg3' ,
'noeol_bg' => thref 'bg3' ,
'noeol_style' => 'b' ,
# Current working directory - Truncation string
cwd_trunc => '...' ,
# Current working directory - Foreground / background colors

View file

@ -42,6 +42,13 @@
'bg_ps2' => thref 'bg',
ps2_suffix => '\b2\f3| ' ,
# Text appended to a line without EOL when layout_empty_line is 3
'noeol_text' => '<NO EOL>' ,
# Colors and style for the above text
'noeol_fg' => thref 'fg3' ,
'noeol_bg' => thref 'bg3' ,
'noeol_style' => 'b' ,
# Current working directory - Truncation string
cwd_trunc => '...' ,
# Current working directory - Foreground / background colors

View file

@ -42,6 +42,13 @@
'bg_ps2' => thref 'bg',
'ps2_suffix' => "\\b2\\f3\x{250a} ",
# Text appended to a line without EOL when layout_empty_line is 3
'noeol_text' => "\x{b6}" ,
# Colors and style for the above text
'noeol_fg' => thref 'fg3' ,
'noeol_bg' => thref 'bg3' ,
'noeol_style' => 'b' ,
# Current working directory - Truncation string
'cwd_trunc' => "\x{2026}",
# Current working directory - Foreground / background colors

View file

@ -42,6 +42,13 @@
'bg_ps2' => thref 'bg',
'ps2_suffix' => "\\b2\\f3\x{250a} ",
# Text appended to a line without EOL when layout_empty_line is 3
'noeol_text' => "\x{b6}" ,
# Colors and style for the above text
'noeol_fg' => thref 'fg3' ,
'noeol_bg' => thref 'bg3' ,
'noeol_style' => 'b' ,
# Current working directory - Truncation string
'cwd_trunc' => "\x{2026}",
# Current working directory - Foreground / background colors

View file

@ -41,6 +41,13 @@
'bg_ps2' => 234,
'ps2_suffix' => '\f0\b2'."\x{e0b0}".'\f2\b1'."\x{e0b0}".' ' ,
# Text appended to a line without EOL when layout_empty_line is 3
'noeol_text' => "\x{e0b0} \x{26a0} \x{e0b2}" ,
# Colors and style for the above text
'noeol_fg' => thref 'fg3' ,
'noeol_bg' => thref 'bg3' ,
'noeol_style' => 'b' ,
# Current working directory - Truncation string
'cwd_trunc' => "\x{2026}",
# Current working directory - Foreground / background colors

View file

@ -41,6 +41,13 @@
'bg_ps2' => 234,
'ps2_suffix' => '\f0\b2'."\x{e0b0}".'\f2\b1'."\x{e0b0}".' ' ,
# Text appended to a line without EOL when layout_empty_line is 3
'noeol_text' => "\x{e0b0} \x{26a0} \x{e0b2}" ,
# Colors and style for the above text
'noeol_fg' => thref 'fg3' ,
'noeol_bg' => thref 'bg3' ,
'noeol_style' => 'b' ,
# Current working directory - Truncation string
'cwd_trunc' => "\x{2026}",
# Current working directory - Foreground / background colors