From 31a65a934818b53a14c247b4fcdb2d623acc9fab Mon Sep 17 00:00:00 2001 From: Hayden Schiff Date: Mon, 22 Feb 2016 19:31:30 -0500 Subject: [PATCH] tput: add page --- pages/common/tput.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/tput.md diff --git a/pages/common/tput.md b/pages/common/tput.md new file mode 100644 index 0000000000..d1facc0242 --- /dev/null +++ b/pages/common/tput.md @@ -0,0 +1,23 @@ +# tput + +> View and modify terminal settings and capabilities. + +- Move the cursor to a screen location: + +`tput cup {{y_coordinate}} {{x_coordinate}}` + +- Set foreground (af) or background (ab) color: + +`tput {{setaf|setab}} {{ansi_color_code}}` + +- Show number of columns, lines, or colors: + +`tput {{cols|lines|colors}}` + +- Ring the terminal bell: + +`tput bel` + +- Reset all terminal attributes: + +`tput sgr0`