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
SETTERM(1)						     Linux Programmer's Manual							SETTERM(1)

NAME
setterm - set terminal attributes SYNOPSIS
setterm [options] DESCRIPTION
setterm writes to standard output a character string that will invoke the specified terminal capabilities. Where possible terminfo is con- sulted to find the string to use. Some options however (marked "virtual consoles only" below) do not correspond to a terminfo(5) capabil- ity. In this case, if the terminal type is "con" or "linux" the string that invokes the specified capabilities on the PC Minix virtual console driver is output. Options that are not implemented by the terminal are ignored. OPTIONS
For boolean options (on or off), the default is on. For conciseness, an 8-color below is black, red, green, yellow, blue, magenta, cyan, or white. A 16-color is an 8-color, grey, or bright followed by red, green, yellow, blue, magenta, cyan, or white. The various color options may be set independently, at least at virtual consoles, though the results of setting multiple modes (for exam- ple, -underline and -half-bright) are hardware-dependent. -term terminal_name Overrides the TERM environment variable. -reset Displays the terminal reset string, which typically resets the terminal to its power on state. -initialize Displays the terminal initialization string, which typically sets the terminal's rendering options, and other attributes to the default values. -cursor [on|off] Turns the terminal's cursor on or off. -repeat [on|off] (virtual consoles only) Turns keyboard repeat on or off. -appcursorkeys [on|off] (virtual consoles only) Sets Cursor Key Application Mode on or off. When on, ESC O A, ESC O B, etc. will be sent for the cursor keys instead of ESC [ A, ESC [ B, etc. See the "vi and Cursor-Keys" section of the Text-Terminal-HOWTO for how this can cause problems for vi users. -linewrap [on|off] (virtual consoles only) Turns automatic line-wrapping on or off. -default Sets the terminal's rendering options to the default values. -foreground 8-color|default (virtual consoles only) Sets the foreground text color. -background 8-color|default (virtual consoles only) Sets the background text color. -ulcolor 16-color (virtual consoles only) Sets the color for underlined characters. -hbcolor 16-color (virtual consoles only) Sets the color for half-bright characters. -inversescreen [on|off] (virtual consoles only) Inverts the screen colors. Foreground and background are swapped, as are underline and half-brightness. -bold [on|off] Turns bold (extra bright) mode on or off. Except at a virtual console, -bold off turns off all attributes (bold, half-brightness, blink, reverse). -half-bright [on|off] Turns dim (half-brightness) mode on or off (see -hbcolor). Except at a virtual console, -half-bright off turns off all attributes (bold, half-brightness, blink, reverse). -blink [on|off] Turns blink mode on or off. Except at a virtual console, -blink off turns off all attributes (bold, half-brightness, blink, reverse). -reverse [on|off] Turns reverse video mode on or off. Except at a virtual console, -reverse off turns off all attributes (bold, half-brightness, blink, reverse). -underline [on|off] Turns underline mode on or off (see -ulcolor). -store (virtual consoles only) Stores the terminal's current rendering options as the default values. -clear [all] Clears the screen and "homes" the cursor, as clear(1). -clear rest Clears from the current cursor position to the end of the screen. -tabs [tab1 tab2 tab3 ...] (virtual consoles only) Sets tab stops at the given horizontal cursor positions, in the range 1-160. Without arguments, shows the current tab stop set- tings. -clrtabs [tab1 tab2 tab3 ...] (virtual consoles only) Clears tab stops from the given horizontal cursor positions, in the range 1-160. Without arguments, clears all tab stops. -regtabs [1-160] (virtual consoles only) Clears all tab stops, then sets a regular tab stop pattern, with one tab every specified number of positions. Without an argument, defaults to 8. -blank [0-60] (virtual consoles only) Sets the interval of inactivity, in minutes, after which the screen will be automatically blanked (using APM if available). Without an argument, defaults to 0 (disable console blanking). -dump [1-NR_CONS] Writes a snapshot of the given virtual console (with attributes) to the file specified in the -file option, overwriting its con- tents; the default is screen.dump. Without an argument, dumps the current virtual console. Overrides -append. -append [1-NR_CONS] Like -dump, but appends to the snapshot file instead of overwriting it. Only works if no -dump options are given. -file dumpfilename Sets the snapshot file name for any -dump or -append options on the same command line. If this option is not present, the default is screen.dump in the current directory. -msg [on|off] (virtual consoles only) Enables or disables the sending of kernel printk() messages to the console. -msglevel 1-8 (virtual consoles only) Sets the console logging level for kernel printk() messages. All messages strictly more important than this will be printed, so a logging level of 0 has the same effect as -msg on and a logging level of 8 will print all kernel messages. klogd(8) may be a more convenient interface to the logging of kernel messages. -powersave on|vsync Puts the monitor into VESA vsync suspend mode. -powersave hsync Puts the monitor into VESA hsync suspend mode. -powersave powerdown Puts the monitor into VESA powerdown mode. -powersave [off] Turns off monitor VESA powersaving features. -powerdown [0-60] Sets the VESA powerdown interval in minutes. Without an argument, defaults to 0 (disable powerdown). If the console is blanked or the monitor is in suspend mode, then the monitor will go into vsync suspend mode or powerdown mode respectively after this period of time has elapsed. -blength [0-2000] Sets the bell duration in milliseconds. Without an argument, defaults to 0. -bfreq [freqnumber] Sets the bell frequency in Hz. Without an argument, defaults to 0. SEE ALSO
tput(1), stty(1), terminfo(5), tty(4) BUGS
Differences between the Minix and Linux versions are not documented. Util-Linux 2.10 7 January 2000 SETTERM(1)