1 parent abec8bd commit 482beb7Copy full SHA for 482beb7
6 files changed
CMakeLists.txt
@@ -1,6 +1,6 @@
1
cmake_minimum_required(VERSION 3.28)
2
project("SL"
3
- VERSION 6.0.3
+ VERSION 6.1.0
4
DESCRIPTION "CHOO CHOO"
5
LANGUAGES C)
6
@@ -10,10 +10,10 @@ install(FILES ${CURSES_DLL} ${SL_EXE} DESTINATION bin COMPONENT applications)
10
set(CPACK_PACKAGE_NAME "sl")
11
set(CPACK_PACKAGE_VENDOR "sl")
12
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "SL (Steam Locomotive)")
13
-set(CPACK_PACKAGE_VERSION "6.0.3")
+set(CPACK_PACKAGE_VERSION "6.1.0")
14
set(CPACK_PACKAGE_VERSION_MAJOR "6")
15
-set(CPACK_PACKAGE_VERSION_MINOR "0")
16
-set(CPACK_PACKAGE_VERSION_PATCH "3")
+set(CPACK_PACKAGE_VERSION_MINOR "1")
+set(CPACK_PACKAGE_VERSION_PATCH "0")
17
set(CPACK_PACKAGE_INSTALL_DIRECTORY "sl")
18
set(CPACK_COMPONENTS_ALL applications)
19
set(CPACK_COMPONENT_APPLICATIONS_DISPLAY_NAME "sl")
Cargo.lock
Cargo.toml
[package]
name = "sl"
-version = "6.0.3"
+version = "6.1.0"
edition = "2021"
build = "build.rs"
@@ -20,6 +20,6 @@ unicode-segmentation = "1.12.0"
20
21
[build-dependencies]
22
clap = { version = "4.5.23", features = ["derive"] }
23
-clap_complete = "4.5.38"
+clap_complete = "4.5.40"
24
clap_mangen = "0.2.24"
25
cmake = "0.1.52"
completions/sl.1
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
-.TH sl 1 "sl 6.0.3"
+.TH sl 1 "sl 6.1.0"
.SH NAME
sl \- sl cures your bad habit of mistyping
.SH SYNOPSIS
@@ -30,6 +30,6 @@ Print help
30
\fB\-V\fR, \fB\-\-version\fR
31
Print version
32
.SH VERSION
33
-v6.0.3
+v6.1.0
34
.SH AUTHORS
35
Toyoda Masashi (mtoyoda@acm.org)
src/freopen.rs
src/main.rs
@@ -4,13 +4,11 @@ use core::time;
use crossterm::event::{poll, read, Event, KeyCode, KeyEvent, KeyModifiers};
use crossterm::terminal::{Clear, ClearType};
use crossterm::{cursor, terminal, ExecutableCommand, QueueableCommand};
7
-use freopen::reopen_stdout;
8
use sl::{print_c51, print_d51, print_sl, set_locale, COLS, LINES};
9
use std::fs;
-use std::io::{stdin, stdout, BufRead, Error, IsTerminal, Stdin, Stdout, Write};
+use std::io::{stdin, stdout, BufRead, Error, IsTerminal, Stdin, Write};
mod cli;
-mod freopen;
mod sl;
fn main() -> Result<(), Error> {
@@ -41,11 +39,6 @@ fn main() -> Result<(), Error> {
41
39
};
42
40
43
let mut stdout = stdout();
44
- if !Stdout::is_terminal(&stdout) {
45
- names.iter().for_each(|n| println!("{}", n));
46
- reopen_stdout()?;
47
- }
48
-
49
terminal::enable_raw_mode()?;
50
stdout.execute(cursor::Hide)?;
51
unsafe {
0 commit comments