Skip to content

一个命令行工具,用于替代windows系统的chcp命令来修改当前终端代码页

Notifications You must be signed in to change notification settings

mwmi/windows-chcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

终端代码页修改工具

windows自带的chcp执行后总是刷屏,所以写了个不用刷屏的小工具来修改当前终端代码页。

用法:
  codepage [选项] [参数]

选项:
  get            获取当前终端代码页
  set [数字]     设置当前终端代码页
  -v, --version  显示版本信息
  -h, --help     显示帮助信息
  -q, --quiet    静默模式,不输出控制台信息

使用

📁 ~\Desktop
❯ codepage set 936
成功:设置代码页为:936

📁 ~\Desktop
❯ codepage set 936
未修改:当前代码已设为:936

📁 ~\Desktop
❯ codepage get
当前终端代码页:936

编译

使用mingw+cmake+ninja进行编译

👉点击下载codepage.exe

About

一个命令行工具,用于替代windows系统的chcp命令来修改当前终端代码页

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published