about summary refs log tree commit diff stats
path: root/tools/treeshake_translate
blob: 36fcf7c66dfe6d9c00b73d5d80f1f988ed42997c (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/sh
# Translate SubX into minified ELF binaries for Linux.

set -e

grep -vh '^\s*#\|^\s*$' $*  > a.in
cat a.in  |tools/treeshake  > a.treeshake
./translate_subx a.treeshake
c { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#ifndef TTYDRIVER_H
#define TTYDRIVER_H

#include "common.h"
#include "tty.h"
#include "fs.h"

void initializeTTYs(BOOL graphicMode);
Tty* getActiveTTY();

void sendKeyInputToTTY(Tty* tty, uint8 scancode);

BOOL isValidTTY(Tty* tty);

FileSystemNode* createPseudoTerminal();

#endif // TTYDRIVER_H