English 中文(简体)
在Gnome/metacity,我们能否把钥匙与需要关键板用户投入的指挥联系起来?
原标题:in Gnome/metacity can we bind a key to a command that requires user input from the keyboard?

所有人,

我在C文中写的用处不大,这要求用户施加压力,以作出菜单选择。 该守则可以预测为简单:

    system("stty raw");
    save_ID = getchar();
    system("stty cooked");

它贪.,不需要等待ENTER。 但是,当我试图将指挥权与Gnome/metacity的一支热门交接时,它会等到中风右线,但中风似乎不是作为对指挥的投入处理,而是作为单独指挥处理。 例如,如果我的关键中风是“1”的,在一号终端中,我看到:

“zsh:指挥没有发现: 1)

我在没有“系统”线的情况下对其进行审判,但没有任何变化。 也许有一些与全球倡议合作的“植被”特殊版本? 顺便说一句,方案的非互动性版本在受热钥匙约束时会受到罚款,因此方案基本上可以运作,因此,它只是可以互动使用。

增 编

问题回答

我认为,德国技术合作公司可能有兴趣,尽管我从未亲自使用过。

http://www。gtk。org/

You should also be able to run gnome-terminal。 Using /opt/appFoo/appFoo as the command to run your app normally, you would run

gnome-terminal -e "/opt/appFoo/appFoo" &





相关问题
Fastest method for running a binary search on a file in C?

For example, let s say I want to find a particular word or number in a file. The contents are in sorted order (obviously). Since I want to run a binary search on the file, it seems like a real waste ...

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Trying to split by two delimiters and it doesn t work - C

I wrote below code to readin line by line from stdin ex. city=Boston;city=New York;city=Chicago and then split each line by ; delimiter and print each record. Then in yet another loop I try to ...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

Encoding, decoding an integer to a char array

Please note that this is not homework and i did search before starting this new thread. I got Store an int in a char array? I was looking for an answer but didn t get any satisfactory answer in the ...

热门标签