mirror of
https://github.com/javalsai/lidm.git
synced 2025-07-02 22:05:04 +02:00
26 lines
489 B
C
26 lines
489 B
C
#ifndef CHVTH_
|
|
#define CHVTH_
|
|
|
|
#include <fcntl.h>
|
|
#include <linux/kd.h>
|
|
#include <linux/vt.h>
|
|
#include <sys/ioctl.h>
|
|
#include <unistd.h>
|
|
|
|
/**
|
|
* @brief change foreground virtual terminal to `n`
|
|
*
|
|
* @param n virtual terminal number
|
|
* @return int non-negative value on success
|
|
*/
|
|
int chvt(int n);
|
|
/**
|
|
* @brief change foreground virtual terminal to `str`
|
|
*
|
|
* @param str virtual terminal number (string)
|
|
* @return int non-negative value on success
|
|
*/
|
|
int chvt_str(char* str);
|
|
|
|
#endif
|