Inputting non-visual characters from the shell (command line)
is it possible to capture user input from the command line (using System.in or any other available method) that contains characters that are not printing characters and are not legal in a java.lang.String? i.e. is it possible to write a program that recognizes the arrows and CTRL, SHIFT, and ALT keys as input without using graphical (Swing or AWT) classes in the program?
No. Shift, ALT and CTRL are key modifiers. Perhaps JCurses would allow you to check for these modifiers as Swing does.
Brian
Similar Messages
-
How to Invoke tasks created in FrameMaker Publishing Server from the Windows command line
Hi All ,
i would like to know how can we Invoke tasks and schedules created in FrameMaker Publishing Server from the Windows command line.
we used publishing server mainly to convert Frame maker files into PDF and that should be do progarmatically without manual intervention on Demand.
so could you please let us know how can i invoke rthe task creted to convert FM file to PDF in FrameMaker Publishing Server from the Windows command line.
please let me know the command to execute .
thank you and waiting for valuable response.
best regards
Ramesh babuPlease see http://blogs.adobe.com/techcomm/2011/03/adobe-framemaker-server-10-and-its-command-line-ca pability.html for the same.
Harish Dhawan -
Running class files from the windows command line...
Hello Everyone,
My instructor showed us a way to run class files from the windows command line. However every time I try to run the class file from the command line using a command like: java CruiseHelper.class
I get an error that states "Exception in thread "main" java.lang.NoClassDefFoundError: CruiseHelper/class"Hello Everyone,
My instructor showed us a way to run class files from
the windows command line. However every time I try
to run the class file from the command line using a
command like: java CruiseHelper.class
I get an error that states "Exception in thread
"main" java.lang.NoClassDefFoundError:
CruiseHelper/class"Classes are not file names. You don't have a class named "CruiseHelper.class", that's a file name. The class name is just CruiseHelper (if you have no package statement in it).
So,
java -classpath . CruiseHelper -
How to compile an .air app from the ADT command line?
Hi,
I would like to compile an .air app from the ADT command line.
Does anybody have an example?
I don't know how to add the AIR SDK path and a folder to it.
Is there a generator for the command line availabble?
ThanksCorrection: it seems that Applescripts and some similar scripts can be called from the command line using "osascript scriptname". I don't speak automator but you might like to try it. osascript seems to come with severe limitations though, for instance it doesn't allow user interaction such as dialogue boxes.
-
Unable to run reports from the unix command line
hi
all of a sudden i am unable to run reports ( on App server 10g) either from the unix scripts or from the unix command line. But i can run them from the forms.
Any one have any idead about this.
Thank youthanks all for replying
i have set the env variables for the session and it worked. Looks like i have to set the oracle_home and ld_library_path every time ( opening a new putty session) i call sqlldr.
But in a whole i am trying to run sql loader from the forms. Right now we have Oracle app server 10g which forms 10g version. As oracle app server 10g didnt come with sqlldr, we are copied the sqlldr of database on to app server with different home. after this we can run sqlldr ( on app server ) from unix scripts but not from Forms. Then we opened a qurey with oracle about app server 10g not commig with sqlldr and its remedy . But they said that they dont have specific remedy for that and suggested the same what we did.
So we came up with java package which does the same funtion as host command and trying to run sqlldr which is on the database( ie replacing the host command in the forms with the database funtion). By using that funtion i am able to run the sqlldr from sql plus but not from forms. I couldnt easily debug it as i wont through any error messages.
Any one have any idea of this ...
Thank you -
How can I import eex files into Applications EUL from the unix command line
How can I import *.eex and *.dis files into an Applications EUL from the unix command line?
ThanksHi
The simple answer is you either have to use the client tool DIS51ADM to import files using the command line (Discoverer Admin is a windows only client tool), or the Java command line which needs a browser.
In theory if you have a browser running on your Unix box you may be able to use the Java command line to make this work.
Best wishes
Michael -
Running Mac apps from the Unix command line
I hope I don't offend Mac lovers with this question, but as a total Mac newbie, I find Finder cumbersome. This may change as I learn all the features and keyboard shortcuts. but I don't think so. I've been playing with computers for 40 years and Unix for 30 and I know what I like. I like a command line interface, and prefer to avoid the point and squint interface to the extent possible.
I'd prefer to run everything from the shell, and not finder. So to run safari, I'd like to do something intuitive (to me, at least) like type ...
bash# safari
... instead of marching around in Finder or using the dock and the mouse.
Can any of you Mac hackers give an old Unix hacker a pointer to a clue?Yes, I'm way too cheap to buy the book. I can't imagine how much I've saved over the years, always being way too cheap to buy the book. Easily enough to pay for the spiffy new computer.
No Windoze experience? You may think you do, but really, you don't know how lucky you are. My Vaxen ran 4.1 BSD though 4.3 BSD. I've played with a lot of flavors of unix. My favorite flavor in recent years has been FreeBSD, so I began paying close attention to the Mac since OS X.
X11 and Xcode were the first things I installed. I've been poking around, reading the docs, and getting a better handle on it all. I've only scratched the surface of the stuff on your pages, and it's been most helpful. There's good stuff there for unix newbies too.
If it were not for Jerry Garcia, I probably never would have had the stones to open my mouth in front of a microphone. -
Hi,
There is no option to create trust database from command line. You have to do it from GUI only.
Thanks,
Daks. -
How do I generate PDF and CHM files from the a command line in windows?
I am trying to set up a PC to build some documents during the night. I was looking for a way to get framemaker to generate PDF and CHM files via a command line in windows? How is this done with FrameMaker 12
Thanks for the help
AlexHi,
The part with generate a PDF via a jsx seems to work OK, except when FrameMaker decides that it will not work anymore. I must say I am not impressed with the stabillity of FrameMaker 12, there is room for a lot of improvement!.
I have given up on how to figure out how to get FrameMaker 12 to generate chm files via jsx scripts, any pointes are still very welcome.
The route I have taken is I make a RoboHelp project for each chm files I need to generate. The only thing this RoboHelp project contains is a link to the actual FrameMaker project I want to generate a chm file.
To make the chm I start RoboHelp with a script that
1) Opens the desired project
2) Sets the desired output chm files name
3) Generates the chm file
4) And finally quits RoboHelp
Below is a copy of the jsx in case anyone can reuse anything. And yes parameters are transfered via enviroments variable. I have later learned there is some way to read the parameters given at a command line but this seems to work so I stick to this for now.
// Get parameters
var RhProjName = $.getenv("RH_PROJ_NAME");
var RhChmName = $.getenv("RH_CHM_NAME");
var RhLogFileName = $.getenv("RH_LOGFILE_NAME");
var RhLogFile = new File(RhLogFileName);
RhLogFile.open("w", "TEXT");
RhLogFile.writeln("RH_PROJ_NAME : ", RhProjName);
RhLogFile.writeln("RH_CHM_NAME : ", RhChmName);
doc = RoboHelp.openProject (RhProjName, 1);
var sslmngr = RoboHelp.project.SSLManager;
for(var i = 1; i<=sslmngr.count; i++){
var ssl = sslmngr.item(i);
if(ssl.name == 'Microsoft HTML Help') {
// Set the output location and file name
ssl.setSpecificProperty("DestinationProjectName", RhChmName);
if (doc.saveAll(true) ) {
RhLogFile.writeln("saveAll returned TRUE");
} else {
RhLogFile.writeln("saveAll returned FALSE");
if ( ssl.generate() ) {
RhLogFile.writeln("ssl.generate returned TRUE");
} else {
RhLogFile.writeln("ssl.generate returned FALSE");
} else {
// alert ("Found " + ssl.name + " dont do anything");
doc.saveAll(true);
RhLogFile.close();
RoboHelp.closeProject();
RoboHelp.quit(); -
Removing non-English characters from data.
Ours is global system with some data with non-English characters. We want to download file by removing this non-English characters.
Any suggestions how we can remove these non-English characters from file..?The FM u said
Replace non-standard characters with standard characters
Functionality
SCP_REPLACE_STRANGE_CHARS processes a text so that it only contains
simple characters. Special characters and national characters are
replaced in such a way that the text remains reasonably legible.
The character set 1146 is used by default. In this case the following
replacements are made, for example:
Æ ==> AE (AE)
 ==> A (Acircumflex)
Ä ==> Ae (Adieresis)
£ ==> L (sterling)
Note that the new text can be longer than the old.
So i dont think it ll be useful for eliminating the sp. chars.
U have to check each and every alphabet with std 26 alphabets
Thanks & Regards
vinsee -
Removing Non-Ascii Characters from a String
Hi Everyone,
I would like to remove all NON-ASCII characters from a large string. For example, I am taking text from websites and would like to remove all the strange arabic and asian characters. How can I accomplish this?
Thank you in advance.I would like to remove all NON-ASCII characters from a large string. I don't know if its a good method but try this:
str="\u6789gj";
output="";
for(char c:str.toCharArray()){
if((c&(char)0xff00)==0){
output=output+c;
System.out.println(output);
all the strange arabic and asian characters.Don't call them so.... I am an Indian Muslim ;-) ....
Thanks! -
Removing Non-numeric characters from Alpha-numeric string
Hi,
I have one column in which i have Alpha-numeric data like
COLUMN X
+91 (876) 098 6789
1-567-987-7655
so on.
I want to remove Non-numeric characters from above (space,'(',')',+,........)
i want to write something generic (suppose some function to which i pass the column)
thanks in advance,
MandipThis variation uses the like operators pattern recognition to remove non alphanumeric characters. It also
keeps decimals.
Code Snippet
CREATE FUNCTION dbo.RemoveChars(@Str varchar(1000))
RETURNS VARCHAR(1000)
BEGIN
declare @NewStr varchar(1000),
@i int
set @i = 1
set @NewStr = ''
while @i <= len(@str)
begin
--grab digits or (| in regex) decimal
if substring(@str,@i,1) like '%[0-9|.]%'
begin
set @NewStr = @NewStr + substring(@str,@i,1)
end
else
begin
set @NewStr = @NewStr
end
set @i = @i + 1
end
RETURN Rtrim(Ltrim(@NewStr))
END
GO
Code to validate:
Code Snippet
declare @t table(
TestStr varchar(100)
insert into @t values ('+91 (8.76) \098 6789');
insert into @t values ('1-567-987-7655');
select dbo.RemoveChars(TestStr)
from @t -
Removing non-numeric characters from string
Hi there,
I need to have the ability to remove non-numeric characters from a string and I do not know how to do this.
Does any one know a way?
Example:
Present String: (02)-2345-4607
Required String: 0223454607
Thanks in advanceDear NickM
Try this this will work...........
create or replace function char2num(mstring in varchar2) return integer
is
-- Function to remove Special characters and alphebets from phone no. string field
-- Author - Valid Bharde.(India-Mumbai)
-- Date :- 20 Sept 2006.
-- This Function will return numeric representation.
-- The Folowing program is gifted to NickM with respect to his post on oracle site regarding Removing non-numeric characters from string on the said date
mstatus number :=0;
mnum number:=0;
mrefstring varchar2(50);
begin
mnum := length(mstring);
for x in 1..mnum loop
if (ASCII(substr(upper(mstring),x,1)) >= 48 and ASCII(substr(upper(mstring),x,1)) <= 57) then
mrefstring := mrefstring || substr(mstring,x,1);
end if;
end loop;
return mrefstring;
end;
copy the above program and use it at function for example
SQL> select char2num('(022)-453452781') from dual;
CHAR2NUM('(022)-453452781')
22453452781
Chao!!! -
Removing non printable characters from an excel file using powershell
Hello,
anyone know how to remove non printable characters from an excel file using powershell?
thanks,
jose.To add - Excel is a binary file. It cannot be managed via external methods easily. You can write a macro that can do this. Post in the Excel forum and explain what you are seeing and get the MVPs there to show you how to use the macro facility
to edit cells. Outside of cell text "unprintable" characters are a normal part of Excel.
¯\_(ツ)_/¯ -
[zsh] cannot input non ASCII characters
When inputing non-ASCII characters (Chinese, for example) under command line, it becomes something like
ä½?
what is really should be printing is
你好
I've searched a little bit on this, and answer has always been "zsh has unicode support already after 4.3.1",
but how come it appears no so in 4.3.10 ?SamC wrote:Could this be a problem with your terminal?
hardly, cause I've also tried this with xterm.
Setting "setopt multibyte" and "setopt printeightbit" doesn't help as well.
Maybe you are looking for
-
Sync issues with iCal/MobileMe/Google
Seems like I've come across something rather sticky.... History I have a MacBook Pro and an iPhone 3G. For the first few months of having the phone, syncing worked like a charm... no complaints. I then decided that I needed to get my Appointments etc
-
Random red pixels on my macbook display
i've had this macbook for 3 days, and as soon as i started using it, red flickering pixels appeared. there not stuck on the screen, just over some dark colours, so you can scroll and they move with the image. I am worried i might have to send it back
-
Digitally Signing XML messages
My servlets receive XML messages and after processing and filling in some values, Digitally Sign the XMLs and send over secure connection to another server. How could possibly this be performed? Please support your answer with code samples. Awaiting
-
How do i get new xml back from edited DOM
i parsed XML to get the DOM and then i edited the dom now how do i get the new XML back from the edited DOM ????????? thanx sam
-
How to verify if Credit Card Info Has been updated
I get an email saying my service is going to be canceled at the end of this month from Skype, because my credit card is expiring, even though my subcriptions are paid for well into 2014. So I update my credit card information, then nothing. The syst