terminal

Implement Compass into an existing Sass project

a 夏天 提交于 2019-12-11 03:21:08
问题 I've been looking at implementing Compass into an existing Sass project. However, I'm struggling to find out if it's even possible. I've been reading through the docs know you can use --sass-dir and --css-dir to define the folder names that it looks for but I can't seem to prevent Compass from creating it's own project structure within my own. Do I need to create a custom config file? Here is the structure: js |_//js here img |_//images here css -main.css //combined from main.scss -main.min

How can I know that the user hit the ESC key in a console with ncurses (Linux)?

爱⌒轻易说出口 提交于 2019-12-11 03:09:43
问题 I have a problem in detecting whether I just got a plain ESC key (just code 27) or whether it was another special key such as an Arrow Up which sends me three bytes: ESC [ A (27 91 65). Now, I understand escape sequences, what I don't understand is how can I possibly know that the user actually typed ESC instead of a special key since both start with 27 and ESC is only 27? Note that I use the wgetch() function from ncurses as in: // initialization not shown initscr() should be enough for this

How to pass arguments to /bin/bash? [closed]

孤者浪人 提交于 2019-12-11 02:59:00
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . In my terminal, I do $ myprogram myfile.ext . I want to be able to do the same via the command /bin/bash , but it is not working. I tried $ /bin/bash -c -l myprogram myfile.ext but it is not working. It seems that my program is launched but without my file.ext as an option (as an input file) Does anyone has a

Remove path prefix from unix tree

蹲街弑〆低调 提交于 2019-12-11 02:48:40
问题 I have a requirements in UNIX command where i have a path similar to this: path/to/file/manyfiles.extensions now i want the output something similar to- file/manyfiles.extensions now i can do this listing both /path/to and /path removing them one by one. but i might get only "/path/to" as my input and i have to remove both from the tree in one command. You might think that i can list 2 folders to remove, but in many a cases i get structures having 12-13 of subfolders in which i need only the

Lightweight event wrapper for the terminal

て烟熏妆下的殇ゞ 提交于 2019-12-11 02:42:01
问题 I believe this is the realm of the ncurses library. I'm trying to avoid having to get down and dirty with it though. I'm looking for a program that I can configure to run a command while performing terminal mouse reporting translation to keypresses. This is for use with pagers like less. For example the MouseTerm SIMBL plugin for Terminal.app does exactly this. But iTerm2 does not. And I want it. I think the answer may be as simple as directly remapping the codes. It looks like there are

Control a pager (like the less program) from an extenal (parent) script

你离开我真会死。 提交于 2019-12-11 02:37:57
问题 In this question I am exploring how to go about monitoring my project directory for changes so that I can keep a terminal that shows an always up-to-date git diff so that I can skip typing git diff over and over into the shell and further streamline my workflow. Supposing that I have a sufficiently intelligent tool that knows exactly when the filesystem has changed, how can I go about disrupting the display of git diff? The ultimate solution would be able to figure out where the current

SSH, run process and then ignore the output

亡梦爱人 提交于 2019-12-11 02:31:11
问题 I have a command that will SSH and run a script after SSH'ing. The script runs a binary file. Once the script is done, I can type any key and my local terminal goes back to its normal state. However, since the process is still running in the machine I SSH'ed into, any time it logs to stdout I see it in my local terminal. How can I ignore this output without monkey patching it on my local machine by passing it to /dev/null ? I want to keep the output inside the machine I am SSH'ing to and I

Changing the VSCode integrated shell's prompt on MacOS X

為{幸葍}努か 提交于 2019-12-11 02:29:04
问题 Having just installed VScode I have noticed as it uses Bash by default on OSX, with the shell's default prompt of bash-3.2$ ; consequently, I cannot see the current working directory. It means having to type 'pwd' and 'ls' quite frequently which is obvious quite tedious. I have tried changing the default shell in the settings to "terminal.integrated.shell.osx": "/Applications/Utilities/Terminal.app" or "terminal.integrated.shell.osx": "/Applications/iTerm.app" This doesn't seem to work, have

run java from terminal that depend on external libraries

老子叫甜甜 提交于 2019-12-11 02:28:49
问题 I've read around a lot but haven't been able to find a solution yet. I'm using lwjgl , it needs 2 jars and a native library to run: lwjgl.jar , lwjgl_util.jar and the natives library. I've tried this in every way i could think of, anyway, I'm trying with a command like this at the moment: java - Djava.library.path="libs/natives/" -cp libs/jars/lwjgl.jar:libs/jars/lwjgl_util.jar DisplayTest.class but in every way i try, i get: Exception in thread "main" java.lang.NoClassDefFoundError:

This Terminal Emulator is not functional because no 'bash' shell could be found. Please correct the problem and restart the IDE

ⅰ亾dé卋堺 提交于 2019-12-11 02:24:17
问题 I use Aptana Studio 3, build: 3.0.2.201106082310 on Arch Linux x86_64, I also have git version 1.7.6 installed. This is the error found in .log: !ENTRY com.aptana.terminal 1 0 2011-07-09 14:59:44.114 !MESSAGE Starting terminal process failed. !STACK 0 java.io.IOException: Cannot run program "/usr/share/aptana/plugins/com.aptana.terminal_3.0.0.1306201824/os/linux/x86_64/redtty" (in directory "/home/kasper/Aptana Studio 3 Workspace/sarkasper.github.com"): java.io.IOException: error=13,