Sponsored Content
Top Forums UNIX for Advanced & Expert Users NCurses not handling hindi half character correctly Post 303017314 by syed.waris on Monday 14th of May 2018 12:48:05 AM
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
 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
SETUPCON(1)						    Console-setup User's Manual 					       SETUPCON(1)

NAME
setupcon - sets up the font and the keyboard on the console SYNOPSIS
setupcon [OPTION]... [VARIANT] DESCRIPTION
setupcon is a program for fast and easy setup of the font and the keyboard on the console. Most of the time you invoke setupcon without arguments. The keyboard configuration is specified in ~/.keyboard or /etc/default/keyboard. The font configuration is specified in ~/.console-setup or /etc/default/console-setup. Consult keyboard(5) and console-setup(5) for instructions how to configure these two files. If you have to switch often between different encodings, keyboards or languages, you can prepare several alternative configuration files for setupcon. Suppose that most of the time you will use Greek language with Greek keyboard layout, but sometimes you need to type in Ger- man with German keyboard layout. In this situation you should customize the main configuration files (keyboard and console-setup) for Greek. Also, create alternative configuration files for German named keyboard.german and console-setup.german. Then in order to configure the console for Greek you will simply run the command with no arguments: setupcon and in order to configure the console for German you will use setupcon german. OPTIONS
VARIANT Specifies which configuration file to use. With no variant, the configuration files of setupcon are named console-setup and key- board. On the other hand, if you use e.g. chukchi as VARIANT then the configuration files are console-setup.chukchi and key- board.chukchi. In this way you can have easy access to several different configurations - for example one for the Chukchi language and another for the default configuration. -v, --verbose Be more verbose. Use this option if something goes wrong or while experimenting with the configuration files. -k, --keyboard-only Setup the keyboard only, do not setup the font or the terminal. On Linux it is enough to do this configuration only once. -f, --font-only Setup the font only, do not setup the keyboard or the terminal. On Linux this configuration should be repeated each time a new con- sole driver is activated (for example when the frame buffer becomes active). -t, --terminal-only Setup the terminal only, do not setup the keyboard or the font. --current-tty Setup the only the current virtual terminal. --force Do not check whether we are on the console. Notice that you can be forced to hard-reboot your computer if you run setupcon with this option and the screen is controlled by a X server. --save This option can be useful if you want to use setupcon early in the boot process while /usr is not yet mounted and the required data are not available. This option will make setupcon copy the required files in /etc/console-setup/ in order to make them available before /usr is mounted. If you use setupcon early in the boot process, then you should run it with this option after every change of the console configuration. --save-only The same as --save, but does not setup anything. This option can be useful if you want to save the required files while the screen is controlled by a X server. --save-keyboard FILE For use by initrd builders. Do not configure anything. Save an usable keyboard layout in FILE. --setup-dir DIR For use by initrd builders. Do not configure anything. Arrange in the directory DIR everything necessary in order to configure the console. The file DIR/morefiles lists all binaries the initrd builder has to install in the initrd image. All other files in DIR have to be copied unchanged in the initrd. In order to configure the console one has to run the script DIR/bin/setupcon. -h, --help Display usage information. FILES
~/.console-setup ~/.keyboard /etc/default/console-setup /etc/default/keyboard /etc/default/console-setup.VARIANT /etc/default/keyboard.VARIANT /etc/console-setup/ SEE ALSO
keyboard(5), console-setup(5) console-setup 2011-03-17 SETUPCON(1)
All times are GMT -4. The time now is 10:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy