エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Rustでテキストエディタを作る - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Rustでテキストエディタを作る - Qiita
extern crate termion; use std::io::{stdin, stdout, Write}; use termion::event::{Event, Key}; use ... extern crate termion; use std::io::{stdin, stdout, Write}; use termion::event::{Event, Key}; use termion::input::TermRead; use termion::raw::IntoRawMode; fn main() { let stdin = stdin(); // Rawモードに移行 // into_raw_modeはIntoRawModeトレイトに定義されている // めんどくさいので失敗時は終了(unwrap) // stdout変数がDropするときにrawモードから元の状態にもどる let mut stdout = stdout().into_raw_mode().unwrap(); // eventsはTermReadトレイトに定義されている for evt in s

