Log in New API Help About

Ben - chvt

614 bytes of Plain text
Created 11 months ago — expires in 31 days
http://dpaste.com/274RVCE
SOFT WRAP RAW TEXT DUPLICATE
Hi team bsdnow,

During episode 312 at around 1h03m you were wondering if someone should make a chvt for FreeBSD.

I previously did make port sysutils/chvt, but then was reminded by jbeich that the functionality already exists in base using vidcontrol, and therefore danfe suggested to remove the port.
on FreeBSD you can implement chvt(1) via shell script:

$ cat ~/bin/chvt
#! /bin/sh
# The file is under Public Domain if not obvious
vidcontrol </dev/ttyv0 -s "${1?usage: chvt N}"

https://www.freshports.org/sysutils/chvt
https://lists.freebsd.org/pipermail/svn-ports-head/2017-August/154486.html