php-kilo/kilo

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();