Download Demo/Templates/InEdUtil.txt from hschumann2/TempleOS-Source-Code: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/datasets/hschumann2/TempleOS-Source-Code/resolve/main/Demo/Templates/InEdUtil.txt
- Command line
-
hf download hf://datasets/hschumann2/TempleOS-Source-Code/Demo/Templates/InEdUtil.txt
-
curl -L -o InEdUtil.txt https://huggingface.co/datasets/hschumann2/TempleOS-Source-Code/resolve/main/Demo/Templates/InEdUtil.txt
509 Bytes
| // See InFile | |
| U0 InEdUtil(U8 *filename) | |
| { | |
| I64 i; | |
| "Ed(\"%s\");\n",filename; | |
| //Go to start of file | |
| Msg(MSG_KEY_DOWN,0,SC_CURSOR_UP|SCF_CTRL); | |
| for (i=0;i<10000;i++) { | |
| if (i) | |
| Msg(MSG_KEY_DOWN_UP,0,SC_F3); | |
| else | |
| "%c0x%c",CH_CTRLF,CH_ESC; | |
| Msg(MSG_KEY_DOWN,0,SC_CURSOR_RIGHT); | |
| Msg(MSG_KEY_DOWN,0,SC_CURSOR_RIGHT); | |
| "%02X",i; | |
| Msg(MSG_KEY_DOWN,0,SC_CURSOR_RIGHT); | |
| Msg(MSG_KEY_DOWN,0,SC_CURSOR_RIGHT); | |
| "%c%c",CH_BACKSPACE,CH_BACKSPACE; | |
| } | |
| } | |
| InEdUtil("MyFile"); | |