Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion libs/braillify/src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::io::{self, IsTerminal, Read, Write};
use std::env::consts;

use anyhow::{Result, bail};
use clap::Parser;
Expand Down Expand Up @@ -38,9 +39,14 @@ fn run_one_shot(text: &str) -> Result<()> {
fn run_repl() -> Result<()> {
let mut rl = DefaultEditor::new()?;
let mut stdout = io::stdout();

let intro = if consts::OS == "windows" {
"braillify REPL - 입력을 점자로 변환합니다. 종료: Ctrl+C or Ctrl+Z" } else {
"braillify REPL - 입력을 점자로 변환합니다. 종료: Ctrl+C or Ctrl+D"};

writeln!(
stdout,
"braillify REPL - 입력을 점자로 변환합니다. 종료: Ctrl+C or Ctrl+D"
"{}", intro
)?;
stdout.flush()?;

Expand Down
Loading