@bergus
2015-12-02T14:34:46.000000Z
字数 596
阅读 1559
sublime 控制台输入解决方案
sublime
下面的配置是通过konsole控制台自带的参数解决了sublime不能输入的问题,这种方式适合任何一种语言
{
"cmd": ["konsole","--hold","-e","python","-u","${file}"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
第二种方式:去掉--hold参数,自己写一个runpython替代原来的python命令
{
"cmd": ["konsole","-e","runpython","${file}"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
runpython:
#!/bin/zsh
# ---------------------------------------------------------------------
# run python.....
# ---------------------------------------------------------------------
echo "start compiling........"
#echo $1
python -u $1
cat