From 8b03a864077d65b741342560d135f69dd6be86c3 Mon Sep 17 00:00:00 2001 From: Michael Angerman <1809991+stormasm@users.noreply.github.com> Date: Sat, 19 Feb 2022 19:34:03 -0800 Subject: [PATCH] clear screen buffer via ansi commands (#158) --- engine-q/cool_oneliners/clear_screen_buf.nu | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 engine-q/cool_oneliners/clear_screen_buf.nu diff --git a/engine-q/cool_oneliners/clear_screen_buf.nu b/engine-q/cool_oneliners/clear_screen_buf.nu new file mode 100644 index 0000000..96ddd47 --- /dev/null +++ b/engine-q/cool_oneliners/clear_screen_buf.nu @@ -0,0 +1,8 @@ +### This clears out your screen buffer on a default mac terminal +### currently there is no way to do that in nushell + +def cls [] { +ansi cls +ansi home +ansi clsb +}