shithub: cursedfs

ref: d4cabc863723fbc7bc94d9223c27665a9f95ed26
dir: /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);