none
WSL Virtual Terminal Support For Debian? RRS feed

  • Question

  • I've installed Windows Subsystem for Linux (WSL) on my Surface Pro under Windows 10 Pro, and am receiving errors when attempting to access virtual terminals (pseudoterminal?).  

    /root (tty1) # fgconsole

    fgconsole: fgconsole: VT_GETSTATE: Inappropriate ioctl for device

    /root (tty1) # fgconsole --next-available
    fgconsole: Couldn't read VTNO: : Inappropriate ioctl for device


    /root (tty1) # chvt 2

    chvt: ioctl VT_ACTIVATE: Inappropriate ioctl for device


    /root (tty1) # openvt -l -v

    openvt: ioctl(VT_GETSTATE): Inappropriate ioctl for device


    I did finally figure out how to open additional terminals by launching a new instance of WSL by clicking on the tile, but, that results in tty2 being created in /dev.   

    /root (tty2) # openvt --console=4 -s

    openvt: ioctl(VT_GETSTATE): Inappropriate ioctl for device


    Are the fgconsole, openvt, and chvt commands supported under WSL?  If so, what is the  trick to using them?

    /root (tty1) # openvt -l

    Monday, June 17, 2019 6:56 PM