NCurses not handling hindi half character correctly


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users NCurses not handling hindi half character correctly
# 1  
Old 05-14-2018
NCurses not handling hindi half character correctly

Hello,


I am working on Ubuntu's Virtual terminal. On the virtual terminal, I am typing in hindi language. Most of the characters are being correctly typed, but in case of typing of a half character, problem is occuring.


A hindi character is 'converted' into half by typing ' ् ' after the character.


For example (if typed in following sequence):
'क' 'स' ' ्' 'ट' : This will transform the second character into half and the complete representation will be कस्ट


After typing the above 4 characters I want them to be present (echoed) on the terminal. But instead, I get (in terms of unicode):

915 938 91f


Expected (in terms of unicode):

915 938 94d 91f


Configuration:
1. /etc/defaultconsole-setup. This file contains FONT='lat9-16.psf.gz /home/syed/Desktop/devanagari16.psf'. And the virtual terminal is configured by running sudo setupcon -v
2. Virtual terminal converted to hindi keyboard using :
sudo dpkg-reconfigure keyboard-configuration
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

[SOLVED] Only half my script runs

Hello out there, I got this script that runs partly fine by my crontab. Problem is it gets to the sleep 300(which should be 5 minutes right?) part and never runs the rest of the scripts past that. All individual scripts run just fine. My var/mail file only shows it up to the " echo "Loader Stop... (3 Replies)
Discussion started by: vsekvsek
3 Replies

2. Programming

[C] Is there a way to clean half screen?

Hi, I wrote a program for Windows environment. It shows a menu to choice some operations to do. Once an operation is done, it cleans the screen with a system("cls") call, and the menu is shown again. I'd like to just clean half screen, so the program doesn't need to call again the print menu... (5 Replies)
Discussion started by: Luke Bonham
5 Replies

3. Shell Programming and Scripting

Handling Invisible character in a file

Hi Experts, When i am trying to read a csv file ,i could find some invisible character in it. I tried to see those characters by following code od -c filename It is displaying 240 for those invisible character. can some one elobrate on this and provide solution remove those character from... (4 Replies)
Discussion started by: cnraja
4 Replies

4. Solaris

Japanese and Hindi test want to insert on file on Solaris 10

Hello All, I have a solaris 10 sparc machine . I have installed all the locale . hi_IN.UTF-8. and similarly for japanese. But when i am trying to insert Hindi test in a file using vi . Every thing is getting turned in dots . Can any one help in this .I have configured the LANG and... (14 Replies)
Discussion started by: Arif29march
14 Replies

5. Programming

Help with ncurses

Help with ncurses Hi, I need some help with ncurses.I'm supposed to write a program in C to display date and time and also to input the username and password using C.I chose ncurses for my task and here I am. Code: #include <stdio.h> #include <termios.h> #include... (1 Reply)
Discussion started by: rakesh_01
1 Replies

6. UNIX for Dummies Questions & Answers

Internet half-broken

I have an odd problem with my internet connection. I think it's software not hardware, but I'm not even certain of that. My best guess is that it relates to my recent installation of KVpnc. I can't connect to most websites: no ping, nothing in the browser. But other websites I can connect to... (7 Replies)
Discussion started by: CRGreathouse
7 Replies

7. Shell Programming and Scripting

Script sortof half-working?

I have directories full of files that contain dates and times in their names in the format YYYYMMDDhhmm. So like, one of the files is named 199407271609 with no file extension. I have this script searches a given directory and changes all creation dates of the files to match the date in their... (4 Replies)
Discussion started by: hot_pants
4 Replies

8. Shell Programming and Scripting

Null Character Handling

Hi All, I have a problem with Null values while reading line by line from a text file. I wrote a shell script to read set of file names from a text file line by line, and zipping the each individual file and copying those zip files into some separate directory, and removing the original file... (3 Replies)
Discussion started by: npk2210
3 Replies
Login or Register to Ask a Question
gettydefs(4)						     Kernel Interfaces Manual						      gettydefs(4)

NAME
gettydefs - speed and terminal settings used by getty DESCRIPTION
The file contains information used by to set up the speed and terminal settings for a line (see getty(1M)). It supplies information on what the prompt should look like. It also supplies the speed to try next if the user indicates the current speed is not correct by typing a Break character. Each entry in has the following format: Each entry is followed by a blank line. The various fields can contain quoted characters of the form etc., as well as where nnn is the octal value of the desired character. The various fields are: label This is the string against which tries to match its second argument. It is often the speed, such as at which the terminal is supposed to run, but it need not be (see below). initial-flags These flags are the initial settings to which the terminal is to be set if a terminal type is not specified to (see ioctl(2)). The flags that understands are the same as the ones listed in (see termio(7)). Normally only the speed flag is required in the initial-flags. automatically sets the terminal to raw input mode and takes care of most of the other flags. The initial-flag settings remain in effect until executes final-flags These flags take the same values as the initial-flags and are set just before executes The speed flag is again required. The composite flag takes care of most of the other flags that need to be set so that the processor and terminal are communi- cating in a rational fashion. The other two commonly specified final-flags are so that tabs are sent to the terminal as spaces, and so that the line is hung up on the final close. login-prompt This entire field is printed as the login-prompt. Unlike the above fields where white space is ignored (a space, tab or new-line), they are included in the login-prompt field. next-label If this entry does not specify the desired speed, indicated by the user typing a Break character, searches for the entry with next-label as its label field and set up the terminal for those settings. Usually, a series of speeds are linked together in this fashion, into a closed set. For example, linked to which in turn is linked to which finally is linked to If is called without a second argument, the first entry of is used, thus making the first entry of the default entry. It is also used if cannot find the specified label. If itself is missing, there is one entry built into the command which brings up a terminal at baud. It is strongly recommended that after making or modifying it be run through with the check option to ensure that there are no errors. EXAMPLES
The following two lines show an example of 300/1200 baud toggle, which is useful for dial-up ports: The following line shows a typical 9600 baud entry for a hard-wired connection: FILES
SEE ALSO
getty(1M), login(1), ioctl(2), termio(7). gettydefs(4)