summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-07-13 15:04:39 -0400
committerJune McEnroe <june@causal.agency>2019-07-13 15:04:39 -0400
commit5bf9a73af5cbf66abf0c84aa480e7c9fa76d4228 (patch)
tree9da717c8d4e62b569529a0d01b14df8c2564d2a1
parentColor html rather than body (diff)
downloadsrc-5bf9a73af5cbf66abf0c84aa480e7c9fa76d4228.tar.gz
src-5bf9a73af5cbf66abf0c84aa480e7c9fa76d4228.zip
Add DL to shotty
Diffstat (limited to '')
-rw-r--r--bin/shotty.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/shotty.c b/bin/shotty.c
index 526f64ab..ea4115f1 100644
--- a/bin/shotty.c
+++ b/bin/shotty.c
@@ -119,6 +119,7 @@ enum {
 	CUP,
 	ED = 'J',
 	EL,
+	DL = 'M',
 	DCH = 'P',
 	VPA = 'd',
 	SM = 'h',
@@ -190,6 +191,11 @@ static char updateCSI(wchar_t ch) {
 			clear(a, b);
 		}
 
+		break; case DL: {
+			uint i = MIN((n ? ps[0] : 1), rows - y);
+			move(cell(y, 0), cell(y + i, 0), cols * (rows - y - i));
+			clear(cell(rows - i, 0), cell(rows - 1, cols - 1));
+		}
 		break; case DCH: {
 			uint i = MIN((n ? ps[0] : 1), cols - x);
 			move(cell(y, x), cell(y, x + i), cols - x - i);
f='/src/commit/bin/hi.c?id=88289ed91d756ca8c842e78c54af5782bfd78fa8&follow=1'>Match Tag in RustJune McEnroe 2019-02-18Match sh functions as TagJune McEnroe 2019-02-18Match Sh and Ss as Tag in mdocJune McEnroe 2019-02-18Match statics and typedefs as TagJune McEnroe 2019-02-18Clean up htmlHeaderJune McEnroe 2019-02-18Remove hi line numberingJune McEnroe 2019-02-18Add Tag class to hiJune McEnroe 2019-02-17Generate HTML with hi -n -f html -o anchorJune McEnroe 2019-02-17Add hi -f html -o anchor for line number linksJune McEnroe 2019-02-17Simplify temp trap in upJune McEnroe 2019-02-17Add line numbers to hiJune McEnroe 2019-02-17Always split spans after newlinesJune McEnroe 2019-02-15Color format specifiers light cyan in vimJune McEnroe 2019-02-15Highlight Interp as yellowJune McEnroe 2019-02-15Highlight strings in sh command substitutionsJune McEnroe 2019-02-15Add nmap gpJune McEnroe 2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe 2019-02-13Add forgotten "sixth" book of H2G2June McEnroe5d7850cab1db7c3458852b876a62be92d&follow=1'>Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe