Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
后端镜像
Tabby
提交
be767e74
T
Tabby
项目概览
后端镜像
/
Tabby
通知
37
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tabby
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
be767e74
编写于
6月 06, 2021
作者:
E
Eugene Pankov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updated clink - fixes #3951
上级
d8e7cab8
变更
11
展开全部
隐藏空白更改
内联
并排
Showing
11 changed file
with
4740 addition
and
4419 deletion
+4740
-4419
extras/clink/CHANGES
extras/clink/CHANGES
+732
-63
extras/clink/clink.bat
extras/clink/clink.bat
+11
-19
extras/clink/clink.html
extras/clink/clink.html
+3970
-789
extras/clink/clink.lua
extras/clink/clink.lua
+4
-3419
extras/clink/clink_dll_x64.dll
extras/clink/clink_dll_x64.dll
+0
-0
extras/clink/clink_dll_x86.dll
extras/clink/clink_dll_x86.dll
+0
-0
extras/clink/clink_x64.exe
extras/clink/clink_x64.exe
+0
-0
extras/clink/clink_x86.exe
extras/clink/clink_x86.exe
+0
-0
extras/clink/profile/.history
extras/clink/profile/.history
+0
-1
extras/clink/profile/settings
extras/clink/profile/settings
+0
-116
terminus-local/src/shells/windowsStock.ts
terminus-local/src/shells/windowsStock.ts
+23
-12
未找到文件。
extras/clink/CHANGES
浏览文件 @
be767e74
此差异已折叠。
点击以展开。
extras/clink/clink.bat
浏览文件 @
be767e74
:: Copyright (c) 2012 Martin Ridgers
::
:: Permission is hereby granted, free of charge, to any person obtaining a copy
:: of this software and associated documentation files (the "Software"), to deal
:: in the Software without restriction, including without limitation the rights
:: to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
:: copies of the Software, and to permit persons to whom the Software is
:: furnished to do so, subject to the following conditions:
::
:: The above copyright notice and this permission notice shall be included in
:: all copies or substantial portions of the Software.
::
:: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
:: IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
:: FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
:: AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
:: LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
:: OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
:: SOFTWARE.
:: License: http://opensource.org/licenses/MIT
@echo
off
set
clink_profile_arg
=
set
clink_quiet_arg
=
:: Mimic cmd.exe's behaviour when starting from the start menu.
if
/i
"
%
1"
==
"startmenu"
(
...
...
@@ -33,6 +18,12 @@ if /i "%1"=="--profile" (
shift
/1
)
:: Check for the --quiet option.
if
/i
"
%
1"
==
"--quiet"
(
set
clink_quiet_arg
=
--quiet
shift
/1
)
:: If the .bat is run without any arguments, then start a cmd.exe instance.
if
"
%
1"
==
""
(
call
:launch
...
...
@@ -52,9 +43,10 @@ if /i "%processor_architecture%"=="x86" (
:end
set
clink_profile_arg
=
set
clink_quiet_arg
=
goto
:eof
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:launch
start
"Clink"
cmd.exe
/s /k
""
%~dpnx0
" inject
%clink_profile_arg%
"
start
"Clink"
cmd.exe
/s /k
""
%~dpnx0
" inject
%clink_profile_arg%
%
clink_quiet_arg
%
"
exit
/b
0
extras/clink/clink.html
浏览文件 @
be767e74
此差异已折叠。
点击以展开。
extras/clink/clink.lua
浏览文件 @
be767e74
此差异已折叠。
点击以展开。
extras/clink/clink_dll_x64.dll
浏览文件 @
be767e74
无法预览此类型文件
extras/clink/clink_dll_x86.dll
浏览文件 @
be767e74
无法预览此类型文件
extras/clink/clink_x64.exe
浏览文件 @
be767e74
无法预览此类型文件
extras/clink/clink_x86.exe
浏览文件 @
be767e74
无法预览此类型文件
extras/clink/profile/.history
已删除
100644 → 0
浏览文件 @
d8e7cab8
Ls
extras/clink/profile/settings
已删除
100644 → 0
浏览文件 @
d8e7cab8
# name: Pressing Ctrl-D exits session
# type: bool
# Ctrl-D exits cmd.exe when it is pressed on an empty line.
ctrld_exits = 1
# name: Toggle if pressing Esc clears line
# type: bool
# Clink clears the current line when Esc is pressed (unless Readline's Vi mode
# is enabled).
esc_clears_line = 1
# name: Match display colour
# type: int
# Colour to use when displaying matches. A value less than 0 will be the
# opposite brightness of the default colour.
match_colour = -1
# name: Executable match style
# type: enum
# 0 = PATH only
# 1 = PATH and CWD
# 2 = PATH, CWD, and directories
# Changes how Clink will match executables when there is no path separator on
# the line. 0 = PATH only, 1 = PATH and CWD, 2 = PATH, CWD, and directories. In
# all cases both executables and directories are matched when there is a path
# separator present. A value of -1 will disable executable matching completely.
exec_match_style = 2
# name: Whitespace prefix matches files
# type: bool
# If the line begins with whitespace then Clink bypasses executable matching and
# will match all files and directories instead.
space_prefix_match_files = 1
# name: Colour of the prompt
# type: int
# Surrounds the prompt in ANSI escape codes to set the prompt's colour. Disabled
# when the value is less than 0.
prompt_colour = -1
# name: Auto-answer terminate prompt
# type: enum
# 0 = Disabled
# 1 = Answer 'Y'
# 2 = Answer 'N'
# Automatically answers cmd.exe's 'Terminate batch job (Y/N)?' prompts. 0 =
# disabled, 1 = answer 'Y', 2 = answer 'N'.
terminate_autoanswer = 0
# name: Lines of history saved to disk
# type: int
# When set to a positive integer this is the number of lines of history that
# will persist when Clink saves the command history to disk. Use 0 for infinite
# lines and <0 to disable history persistence.
history_file_lines = 10000
# name: Skip adding lines prefixed with whitespace
# type: bool
# Ignore lines that begin with whitespace when adding lines in to the history.
history_ignore_space = 0
# name: Controls how duplicate entries are handled
# type: enum
# 0 = Always add
# 1 = Ignore
# 2 = Erase previous
# If a line is a duplicate of an existing history entry Clink will erase the
# duplicate when this is set 2. A value of 1 will not add duplicates to the
# history and a value of 0 will always add lines. Note that history is not
# deduplicated when reading/writing to disk.
history_dupe_mode = 2
# name: Read/write history file each line edited
# type: bool
# When non-zero the history will be read from disk before editing a new line and
# written to disk afterwards.
history_io = 0
# name: Sets how command history expansion is applied
# type: enum
# 0 = Off
# 1 = On
# 2 = Not in single quotes
# 3 = Not in double quote
# 4 = Not in any quotes
# The '!' character in an entered line can be interpreted to introduce words
# from the history. This can be enabled and disable by setting this value to 1
# or 0. Values or 2, 3 or 4 will skip any ! character quoted in single, double,
# or both quotes respectively.
history_expand_mode = 4
# name: Support Windows' Ctrl-Alt substitute for AltGr
# type: bool
# Windows provides Ctrl-Alt as a substitute for AltGr, historically to support
# keyboards with no AltGr key. This may collide with some of Readline's
# bindings.
use_altgr_substitute = 1
# name: Strips CR and LF chars on paste
# type: enum
# 0 = Paste unchanged
# 1 = Strip
# 2 = As space
# Setting this to a value >0 will make Clink strip CR and LF characters from
# text pasted into the current line. Set this to 1 to strip all newline
# characters and 2 to replace them with a space.
strip_crlf_on_paste = 2
# name: Enables basic ANSI escape code support
# type: bool
# When printing the prompt, Clink has basic built-in support for SGR ANSI escape
# codes to control the text colours. This is automatically disabled if a third
# party tool is detected that also provides this facility. It can also be
# disabled by setting this to 0.
ansi_code_support = 1
terminus-local/src/shells/windowsStock.ts
浏览文件 @
be767e74
...
...
@@ -18,23 +18,34 @@ export class WindowsStockShellsProvider extends ShellProvider {
if
(
this
.
hostApp
.
platform
!==
Platform
.
Windows
)
{
return
[]
}
let
clinkPath
=
path
.
join
(
path
.
dirname
(
this
.
electron
.
app
.
getPath
(
'
exe
'
)),
'
resources
'
,
'
extras
'
,
'
clink
'
,
`clink_
${
process
.
arch
}
.exe`
,
)
if
(
process
.
env
.
TERMINUS_DEV
)
{
clinkPath
=
path
.
join
(
path
.
dirname
(
this
.
electron
.
app
.
getPath
(
'
exe
'
)),
'
..
'
,
'
..
'
,
'
..
'
,
'
extras
'
,
'
clink
'
,
`clink_
${
process
.
arch
}
.exe`
,
)
}
return
[
{
id
:
'
clink
'
,
name
:
'
CMD (clink)
'
,
command
:
'
cmd.exe
'
,
args
:
[
'
/k
'
,
path
.
join
(
path
.
dirname
(
this
.
electron
.
app
.
getPath
(
'
exe
'
)),
'
resources
'
,
'
extras
'
,
'
clink
'
,
`clink_
${
process
.
arch
}
.exe`
,
),
'
inject
'
,
],
env
:
{},
args
:
[
'
/k
'
,
clinkPath
,
'
inject
'
],
env
:
{
// Tell clink not to emulate ANSI handling
WT_SESSION
:
'
0
'
,
},
icon
:
require
(
'
../icons/clink.svg
'
),
},
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录