php-kilo/kilo
2019-10-11 16:32:47 -04:00

27 lines
362 B
PHP
Executable File

#!/usr/bin/php
<?php declare(strict_types=1);
namespace Kilo;
require_once __DIR__ . '/src/constants.php';
require_once __DIR__ . '/src/functions.php';
require_once __DIR__ . '/src/editor.php';
function main(): int
{
enableRawMode();
$editor = new Editor();
// Input Loop
while (true)
{
$editor->processKeypress();
}
return 0;
}
//! Init
main();