File: chvt-test

package info (click to toggle)
brltty 6.9-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 44,828 kB
  • sloc: ansic: 154,246; java: 13,514; sh: 9,934; xml: 5,672; tcl: 2,679; makefile: 2,346; awk: 713; lisp: 366; python: 321; ml: 301
file content (18 lines) | stat: -rwxr-xr-x 199 bytes parent folder | download | duplicates (4)
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