<div dir="ltr">I just stumbled across this and found it so useful that I thought other Erlang newbies might, too. This info is in fact in the erlang-questions archives, but quite rare (< 10 results that I could find).<br>
<br>I've always used io:format("~p\n", [X]) to print X in the shell when X is a largish term that the shell truncates. Using io:format for this is a pain in the rear, especially for lazy typists like me.<br clear="all">
<br><span style="font-family: courier new,monospace;">> mnesia:start(), X = mnesia:system_info(all).</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[{access_module,mnesia},</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {auto_repair,true},</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">++++ .... rows deleted for brevity ...</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {schema_location,opt_disc},</span><br style="font-family: courier new,monospace;"><b><span style="font-family: courier new,monospace;"> {schema_version,...},</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {...}|...] %% Arghhh!!!!</span><br></b><br>Instead of using io:format, one can use the shell record print command (rp). It works for any term and requires minimal typing.<br>
<br><span style="font-family: courier new,monospace;">>rp(X).</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[{access_module,mnesia},</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {auto_repair,true},</span><br style="font-family: courier new,monospace;"> <span style="font-family: courier new,monospace;">++++ .... rows deleted for brevity ...</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {schema_location,opt_disc},</span><br style="font-family: courier new,monospace;"><b><span style="font-family: courier new,monospace;"> {schema_version,{2,0}},</span></b><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {subscribers,[<0.37.0>]},</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> {tables,[schema]},</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {transaction_commits,2},</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> {transaction_failures,0},</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {transaction_log_writes,0},</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> {transaction_restarts,0},</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {transactions,[]},</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> {use_dir,false},</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {core_dir,false},</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> {no_table_loaders,2},</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {dc_dump_limit,4},</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> {version,"4.4.3"}]</span><br><br>
</div>