I am making a Haskell editor with Cocoa, and it would be useful to support some in-application text output. Even better would be supporting some text input.
Xcode does all this in its console, which looks like it might be an NSTextView, but not sure if somebody might have done all this before.
...
The man page says:
Make restricted segments for use in multi-CD restores.
but it doesn't say what this means or why it would be desirable.
...
I'm working on a simple Python script that can use subprocess and/or os to execute some commands, which is working fine.
However, when the script exits I'd like to cd the actual Terminal (in this case OS X) so on exit, the new files are ready to use in the directory where the have been created. All the following (subprocess.Popen, os.sy...
Hi,
I have a really large SQL dump around 400MB.
It's in the following format, "INSERT INTO user VALUES('USERID', 'USERNAME', 'PASSWORD', '0', '0', 'EMAIL', 'GENDER', 'BIRTHDAY', '182', '13', '640', 'Married', 'Straight', '', 'Yes', 'Yes', '1146411153', '1216452123', '1149440844', '0', picture', '1', '0', '0', 'zip', '0', '', '0', '',...
I often do this to prepare for some django debugging:
Open up a terminal window in os x (10.6)
start the python interpreter
run these commands in python:
from django.core.management import setup_environ
import settings
setup_environ(settings)
Is it possible to automate these actions and make a shortcut that I can doubleclick to in...
Hello,
I want to extract only the files inside a folder of a tar file
Example:
Contents of tar file:
/home/parent_dir/child_dir/
I want to extract only the files inside child_dir to another directory
Thanks,
SB
...
I'm looking for an explanation of the different functionality in versions of a application called VMAC (Verix blah blah blah), also called "comm server", which is used on Verifone payment terminals. I've got terminals with versions 1.7 and 3.3 of VMAC, and I'm unaware of the differences.
If someone is a Verifone expert, it would be h...
Hi everyone,
I want to make a C# app in Mono as it's the only programming language I'm mostly comfortable with.
Anyway, ATI Drivers on Linux do not have a Fan control feature and therefore the cards to tend to heat up. For me I prefer to have a cooler card.
What I want to do is run a command such as:
aticonfig --pplib-cmd 'set fanspe...
How to send a command to the terminal through android app and get the output back? For example, sending "ls /" and getting the output to print it in the GUI?
...
I would like to create a terminal based installer/wizard.
Ideally, it'd be like the Ubuntu server installer, or the Arch Linux installer - a ncurses (?) heavy GUI with lots of form and arrow key goodness.
Second best would be a simpler question/answer type thing, similar to the "adduser" command prompting for password, username, etc.
...
i wonder why backspace character in common linux terminals does not actually erase the characters, when printed (which normally works when typed)..
this works as expected:
$ echo -e "abc\b\b\bxyz"
xyz
(\b evaluates to backspace, can be inserted also as ctrl-v ctrl-h - rendered as ^H (0x08))
but when there are less characters after t...
My vim is very slow to switch tabs (:tabnext) when i've fullscreened my terminal (1920x1200).
Does anyone have a fix for this? Is it a vim issue, or is it my setup? Redrawing a black terminal (gnome-terminal) with a bit of text shouldn't be that hard.
...
Hi!
I'm trying to run .class file from command line. It works when I manually move to the directory it's stored in, but when I try something like this:
java C:\Peter\Michael\Lazarus\Main
it says it can't find the main class. Is there any solution to this other than making a .jar file (I know that .jar is the best solution, but at th...
i'm trying to use the terminal from python VTE binding (python-vte from debian squeeze) as a virtual terminal emulator (just for ANSI/control chars text processing)
in interactive python console, everything looks (almost) all right:
>>> import vte
>>> term = vte.Terminal()
>>> term.feed("a\nb")
>>> print repr(term.get_text(lambda *a: T...
Hi, I am trying to execute a program from the Java code. Here is my code:
public static void main(String argv[]) {
try {
String line;
Process p = Runtime.getRuntime().exec(
"/bin/bash -c ls > OutputFileNames.txt");
BufferedReader input = new BufferedReader(
new InputStreamReader(p.getInputStream...
Hi, I am trying to execute a program from the Java code. Here is my code:
public static void main(String argv[]) {
try {
String line;
Process p = Runtime.getRuntime().exec(new String[]{
"/bin/bash", "-c", "executable -o filename.txt"});
BufferedReader input = new BufferedReader(
new InputStreamR...
I'm using Terminal.app on Mac OS10.6.3, with gnu screen and zsh.
What I want to do is, see pwd(or an URL) in Terminal.app and double click on it, and select the whole path, to copy and paste after that.
But what I get now is a single directory name, because '/' is not treated as a word.
I found that iTerm has a setting to change it(iTe...
I have a little bash function to log my Macports outputs to a file (since installs often spew little tidbits that are easy to lose in terminal noise), then I just cat the file to the terminal:
function porti {
command sudo port install $@ >> $1.log 2>&1; cat $1.log
}
Is there a way to do this concurrently?
BTW I pass $@ to instal...
We have an 32 bit application consisting of some processes. They communicate with shared memory of a DLL used by every process. Shared memory is build with global variables in C++ by "#pragma data_seg ("Shared")".
When running this application sometime during starting a new process in addition to an existing (first) process we observe t...
Hi All,
I need output different information to different terminal instances instead of print them in same output stream, say std.err or std.out.
for example:
I have 5 kinds of information say A-E need to be displayed on different terminal windows on same desktop, looks like
[terminal 1] <- for displaying information A
[terminal 2] ...