;calling directory !path=!path+':'+expand_path('.') ;Home IDL directory !path=!path+':'+expand_path('+~/idl') ;astro idl library !path=!path+':'+expand_path('+/net/idllib/AstronomyUsersLibrary/pro') !path=!path+':'+expand_path('+/net/idllib/deutsch') !path=!path+':'+expand_path('+/net/idllib/jhuapls1r') !path=!path+':'+expand_path('+/net/idllib/contrib') !path=!path+':'+expand_path('+/net/idllib/user_contrib') !path=!path+':'+expand_path('+/net/idllibn.old/contrib') !path=!path+':'+expand_path('+/net/idllib/sdss/allpro') !path=!path+':'+expand_path('+/net/idllib/textoidl') !path=!path+':'+expand_path('+/net/idllib/astron/pro') ;to enable arrow keys DEFINE_KEY, ESC=string([27B, 79B, 68B]), 'ALT_L', /BACK_CHAR DEFINE_KEY, ESC=string([27B, 79B, 67B]), 'ALT_R', /FORWARD_CHAR DEFINE_KEY, ESC=string([27B, 79B, 65B]), 'ALT_UP', /PREVIOUS_LINE DEFINE_KEY, ESC=string([27B, 79B, 66B]), 'ALT_DN', /NEXT_LINE if !version.os_family eq 'unix' then device, true_color=24 window, /free, /pixmap, colors=-10 wdelete, !d.window device, decomposed=0 ,retain=2 device, get_visual_depth=depth ; print, 'Display depth: ', depth ; print, 'Color table size: ', !d.table_size