shithub: cursedfs

ref: 2e592b5e00e8f2489eba725135e3aab33438a9c0
dir: cursedfs/fs.h

View raw version
#define Cmdwidth	1024
#define Ncmd		4
#define Nfiles		2

// Represents a 9p file
typedef struct File9 File9;

// All available files on the 9p fs
extern File9 *files[Nfiles];

/* Channels for mouse and kb events */
extern Channel	*mchan, *kbchan;

// Init the draw screen
void	initscreen(void*);
// Put a rune on the screen (x,y)
Rune*	putrune(Rune, usize, usize);
// Put a string on the screen (y)
Rune*	putstring(Rune*, usize);
// Clear the screen
void	clear(void);