probuzení terminálu

echo -ne "\033[9;0]" >/dev/tty1

neusínání terminálu

echo -n "\e13" > /dev/tty1

uspání HDMI

sudo /opt/vc/bin/tvservice -o

probuzení HDMI

sudo /opt/vc/bin/tvservice -p
clear

cls

echo -ne "\033c" > /dev/tty1

zjištění HDMI rozlišení

tvservice -m CEA
tvservice -m DMT

nastavení rozlišení

https://www.raspberrypi.org/documentation/configuration/config-txt/README.md

/boot/config.txt:
framebuffer_width=720 # LH
framebuffer_height=480 # LH
hnebo
hdmi_mode=16

nastavení okrajů

overscan_left=20
overscan_right=12
overscan_top=10
overscan_bottom=10

nastavení fontu terminálu

ls /usr/share/consolefonts/
setfont Lat15-Fixed18

nastavení editoru

update-alternatives --set editor /usr/bin/vim.tiny

incron

https://www.howtoforge.com/tutorial/trigger-commands-on-file-or-directory-changes-with-incron/

ncat server

http://stackoverflow.com/questions/5162568/linux-execute-command-remotely
https://en.wikipedia.org/wiki/Netcat

kurzor

  • pozice: tput cup 0 0
  • neviditelný: tput civis > /dev/tty1
  • viditelný: tput cvvis > /dev/tty1