Cleanup io calls and add cd function.
This commit is contained in:
@@ -50,5 +50,6 @@ struct BEd {
|
||||
void handle(std::string_view cmd, bool eof);
|
||||
void run();
|
||||
void suffix_handle(char s);
|
||||
bool escape_command(std::string &cmd, std::string_view filename);
|
||||
};
|
||||
} // namespace bed
|
||||
|
||||
@@ -81,5 +81,6 @@ struct Function {
|
||||
handle;
|
||||
|
||||
static void register_posix(BEd &ctx);
|
||||
static void register_extented(BEd &ctx);
|
||||
};
|
||||
} // namespace bed::internal::functions
|
||||
|
||||
@@ -74,6 +74,7 @@ struct IO {
|
||||
KeyEvent read_key();
|
||||
void write(const char *, uint64_t);
|
||||
void write(std::string_view);
|
||||
void write_line(std::string_view);
|
||||
void run_pty(const std::string &);
|
||||
|
||||
std::deque<char> input_queue;
|
||||
|
||||
@@ -29,7 +29,6 @@ extern "C" {
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
#include <limits.h>
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
|
||||
Reference in New Issue
Block a user