File: chvt-test

package info (click to toggle)
brltty 6.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 35,776 kB
  • sloc: ansic: 150,447; java: 13,484; sh: 9,667; xml: 5,702; tcl: 2,634; makefile: 2,328; awk: 713; lisp: 366; python: 321; ml: 301
file content (18 lines) | stat: -rwxr-xr-x 199 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
set -e

console="$(fgconsole)"

index=0
while ((++index <= 1000))
do
   vt=0
   while ((++vt <= 6))
   do
      /usr/bin/chvt $vt
      sleep 0.001
   done
done

chvt "${console}"
exit 0