标签:
下面的配置是通过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