下面的配置是通過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
轉載請注明:白云輝博客園 http://www.cnblogs.com/bergus/p/4645219.html>